From ad3d021b9e5a8d927bc1ddbc6e2a34ba2ff31e8f Mon Sep 17 00:00:00 2001 From: Jon Chesterfield Date: Tue, 3 Mar 2020 18:24:51 +0000 Subject: [PATCH] [libomptarget][nfc][amdgcn] Simplify assert_fail implementation --- openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h index 827e230a5c36..b3c892323b74 100644 --- a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h +++ b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h @@ -142,11 +142,9 @@ DEVICE void *__kmpc_impl_malloc(size_t x); DEVICE void __kmpc_impl_free(void *x); // DEVICE versions of part of libc -EXTERN __attribute__((noreturn)) void -__assertfail(const char *, const char *, unsigned, const char *, size_t); -INLINE void __assert_fail(const char *__message, const char *__file, - unsigned int __line, const char *__function) { - __assertfail(__message, __file, __line, __function, sizeof(char)); +INLINE void __assert_fail(const char *, const char *, unsigned int, + const char *) { + __builtin_trap(); } EXTERN int printf(const char *, ...); -- 2.34.1