[clang] [CIR] Add nothrow attribute to the call operation (PR #145178)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 29 05:08:13 PDT 2025
================
@@ -102,3 +104,16 @@ void f12() {
// LLVM: %[[#slot:]] = alloca %struct.S, i64 1, align 4
// LLVM-NEXT: %[[#ret:]] = call %struct.S @_Z3f10v()
// LLVM-NEXT: store %struct.S %[[#ret]], ptr %[[#slot]], align 4
+
+void f13() noexcept;
+void f14() {
+ f13();
+}
+
+// CIR-LABEL: cir.func @_Z3f14v()
+// CIR: cir.call @_Z3f13v() extra(#[[FN_ATTR]]) : () -> ()
+// CIR: }
+
+// LLVM-LABEL: define void @_Z3f14v()
+// LLVM: call void @_Z3f13v()
----------------
Lancern wrote:
Updated.
https://github.com/llvm/llvm-project/pull/145178
More information about the cfe-commits
mailing list