[clang] [CIR] Add nothrow attribute to the call operation (PR #145178)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 2 06:20:17 PDT 2025


================
@@ -662,13 +665,17 @@ static void printCallCommon(mlir::Operation *op,
   }
   printer << "(" << ops << ")";
 
+  if (isNothrow)
+    printer << " nothrow";
----------------
Lancern wrote:

Here is just ASM syntax. I believe it's OK to leave it as is, but we should instead update https://github.com/llvm/llvm-project/pull/145178/commits/183dad89003c36f3c3d11c4b930908b829f40f17#diff-faa2ec54c50ac1851dc87e935f0b77253e82ba068c0a711133fde2c8f29f5522R678 ?

https://github.com/llvm/llvm-project/pull/145178


More information about the cfe-commits mailing list