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

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 11:06:44 PDT 2025


================
@@ -227,26 +227,24 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
   //===--------------------------------------------------------------------===//
 
   cir::CallOp createCallOp(mlir::Location loc, mlir::SymbolRefAttr callee,
-                           mlir::Type returnType, mlir::ValueRange operands,
-                           cir::SideEffect sideEffect = cir::SideEffect::All) {
----------------
bcardosolopes wrote:

Have you thought about just having a `ArrayRef<Attribute> attrs = {}`? This would allow the caller to already pass stuff in if available.

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


More information about the cfe-commits mailing list