mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 17:06:38 +00:00
[flang-rt] Declare DeviceTrap static inline. (#135286)
This commit is contained in:
parent
9466cbdf29
commit
f4203ca2b7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user