Skip to content

Commit f7283c1

Browse files
vzakharigithub-actions[bot]
authored andcommitted
Automerge: [flang-rt] Declare DeviceTrap static inline. (#135286)
2 parents 34cb2a6 + f4203ca commit f7283c1

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)