Skip to content

Commit 653b54e

Browse files
committed
Add NoThrow attribute to __builtin_riscv_pause()
1 parent 42f465c commit 653b54e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/Basic/BuiltinsRISCV.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ def ntl_store : RISCVBuiltin<"void(...)">;
150150
//===----------------------------------------------------------------------===//
151151
// Zihintpause extension.
152152
//===----------------------------------------------------------------------===//
153-
let Features = "zihintpause" in {
153+
let Features = "zihintpause", Attributes = [NoThrow] in {
154154
def pause : RISCVBuiltin<"void()">;
155-
} // Features = "zihintpause"
155+
} // Features = "zihintpause", Attributes = [NoThrow]
156156

157157
//===----------------------------------------------------------------------===//
158158
// XCV extensions.

0 commit comments

Comments
 (0)