From 3b2685f7ad3a4e80aca6f3b168f761c9f2379bd8 Mon Sep 17 00:00:00 2001 From: Slava Zakharin Date: Thu, 10 Apr 2025 17:26:35 -0700 Subject: [PATCH] [flang-rt] Declare DeviceTrap static inline. --- flang-rt/include/flang-rt/runtime/terminator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang-rt/include/flang-rt/runtime/terminator.h b/flang-rt/include/flang-rt/runtime/terminator.h index a20f50ee05a8a..047b576be4bc1 100644 --- a/flang-rt/include/flang-rt/runtime/terminator.h +++ b/flang-rt/include/flang-rt/runtime/terminator.h @@ -118,7 +118,7 @@ RT_API_ATTRS void NotifyOtherImagesOfErrorTermination(); #if defined(RT_DEVICE_COMPILATION) /// Trap the execution on the device. -[[noreturn]] void RT_API_ATTRS DeviceTrap() { +[[noreturn]] static inline void RT_API_ATTRS DeviceTrap() { #if defined(__CUDACC__) // NVCC supports __trap(). __trap();