Skip to content

Commit 0c87d3b

Browse files
el-evmmha
andcommitted
Update clang/lib/CIR/Dialect/IR/CIRDialect.cpp
Co-authored-by: Morris Hafner <[email protected]>
1 parent 2f6570b commit 0c87d3b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

clang/lib/CIR/Dialect/IR/CIRDialect.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,13 +2459,10 @@ void cir::InlineAsmOp::print(OpAsmPrinter &p) {
24592459
if (getSideEffects())
24602460
p << " side_effects";
24612461

2462-
llvm::SmallVector<::llvm::StringRef, 2> elidedAttrs;
2463-
elidedAttrs.push_back("asm_flavor");
2464-
elidedAttrs.push_back("asm_string");
2465-
elidedAttrs.push_back("constraints");
2466-
elidedAttrs.push_back("operand_attrs");
2467-
elidedAttrs.push_back("operands_segments");
2468-
elidedAttrs.push_back("side_effects");
2462+
std::array elidedAttrs{
2463+
llvm::StringRef("asm_flavor"), llvm::StringRef("asm_string"),
2464+
llvm::StringRef("constraints"), llvm::StringRef("operand_attrs"),
2465+
llvm::StringRef("operands_segments"), llvm::StringRef("side_effects")};
24692466
p.printOptionalAttrDict(getOperation()->getAttrs(), elidedAttrs);
24702467

24712468
if (auto v = getRes())

0 commit comments

Comments
 (0)