From f4203ca2b7b047fc556535661f406e7fef758835 Mon Sep 17 00:00:00 2001 From: Slava Zakharin Date: Thu, 10 Apr 2025 17:38:04 -0700 Subject: [PATCH] [flang-rt] Declare DeviceTrap static inline. (#135286) --- 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 a20f50ee05a8..047b576be4bc 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();