================ @@ -0,0 +1,101 @@ +//===-- ubsan_loop_detect.cpp ---------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// Runtime support for -fsanitize-trap-loop. +// +//===----------------------------------------------------------------------===// + +#include <sanitizer/ubsan_interface.h> + +#if defined(__linux__) && (defined(__i386__) || defined(__x86_64__)) ---------------- fmayer wrote:
I would just put the whole file into this, and then in the #else have two empty definitions, rather than piecemeal like this https://github.com/llvm/llvm-project/pull/179011 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
