[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:10:00 PDT 2025
================
@@ -611,6 +611,9 @@ static mlir::ParseResult parseCallCommon(mlir::OpAsmParser &parser,
if (parser.parseRParen())
return mlir::failure();
+ if (parser.parseOptionalKeyword("nothrow").succeeded())
+ result.addAttribute("nothrow", mlir::UnitAttr::get(parser.getContext()));
----------------
bcardosolopes wrote:
Same for the literal string here.
https://github.com/llvm/llvm-project/pull/145178
More information about the cfe-commits
mailing list