[Openmp-commits] [openmp] ac65b3c - [OpenMP] Add `abort` to `FATAL_MESSAGE`

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Sun Dec 11 19:41:53 PST 2022


Author: Shilei Tian
Date: 2022-12-11T22:41:22-05:00
New Revision: ac65b3c7a2ad67ce17d31dc14867dc83650f751e

URL: https://github.com/llvm/llvm-project/commit/ac65b3c7a2ad67ce17d31dc14867dc83650f751e
DIFF: https://github.com/llvm/llvm-project/commit/ac65b3c7a2ad67ce17d31dc14867dc83650f751e.diff

LOG: [OpenMP] Add `abort` to `FATAL_MESSAGE`

Added: 
    

Modified: 
    openmp/libomptarget/include/Debug.h

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/include/Debug.h b/openmp/libomptarget/include/Debug.h
index 4e7da8b7d53f..47c292c5744e 100644
--- a/openmp/libomptarget/include/Debug.h
+++ b/openmp/libomptarget/include/Debug.h
@@ -128,6 +128,7 @@ inline uint32_t getDebugLevel() {
   do {                                                                         \
     fprintf(stderr, GETNAME(TARGET_NAME) " error: ");                          \
     fprintf(stderr, __VA_ARGS__);                                              \
+    abort();                                                                   \
   } while (0)
 
 /// Print a generic information string used if LIBOMPTARGET_INFO=1


        


More information about the Openmp-commits mailing list