[flang-rt] Declare DeviceTrap static inline. (#135286)

This commit is contained in:
Slava Zakharin 2025-04-10 17:38:04 -07:00 committed by GitHub
parent 9466cbdf29
commit f4203ca2b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();