Skip to content

Commit

Permalink
[CIR][NFC] Fix few compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardosolopes authored and lanza committed Oct 12, 2024
1 parent d78272d commit 09d8d7b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions clang/lib/CIR/Dialect/IR/CIRDialect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2914,9 +2914,11 @@ ParseResult cir::InlineAsmOp::parse(OpAsmParser &parser,
if (parser.parseOptionalKeyword("side_effects").succeeded())
result.attributes.set("side_effects", UnitAttr::get(ctxt));

if (parser.parseOptionalArrow().succeeded())
;
[[maybe_unused]] auto x = parser.parseType(resType);
if (parser.parseOptionalArrow().failed())
return mlir::failure();

if (parser.parseType(resType).failed())
return mlir::failure();

if (parser.parseOptionalAttrDict(result.attributes))
return mlir::failure();
Expand Down

0 comments on commit 09d8d7b

Please sign in to comment.