Skip to content

Commit f4203ca

Browse files
authored
[flang-rt] Declare DeviceTrap static inline. (#135286)
1 parent 9466cbd commit f4203ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang-rt/include/flang-rt/runtime/terminator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ RT_API_ATTRS void NotifyOtherImagesOfErrorTermination();
118118

119119
#if defined(RT_DEVICE_COMPILATION)
120120
/// Trap the execution on the device.
121-
[[noreturn]] void RT_API_ATTRS DeviceTrap() {
121+
[[noreturn]] static inline void RT_API_ATTRS DeviceTrap() {
122122
#if defined(__CUDACC__)
123123
// NVCC supports __trap().
124124
__trap();

0 commit comments

Comments
 (0)