[llvm] [OpenMP] Do not define '__assert_fail' if we have the GPU libc (PR #100409)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 13:01:55 PDT 2024


================
@@ -26,10 +26,13 @@ using namespace ompx;
 extern "C" {
 void __assert_assume(bool condition) { __builtin_assume(condition); }
 
+#ifndef OMPTARGET_HAS_LIBC
----------------
shiltian wrote:

No `OMPTARGET` anymore I suggest.

https://github.com/llvm/llvm-project/pull/100409


More information about the llvm-commits mailing list