Skip to content

Commit 6ad7cef

Browse files
Apply suggestions from code review
Co-authored-by: Markus Böck <[email protected]>
1 parent 409723b commit 6ad7cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ struct BranchOpLowering : public ConvertOpToLLVMPattern<cf::BranchOp> {
138138
TypeRange(adaptor.getOperands()));
139139
if (failed(convertedBlock))
140140
return failure();
141-
auto attrs = op->getAttrDictionary();
141+
DictionaryAttr attrs = op->getAttrDictionary();
142142
Operation *newOp = rewriter.replaceOpWithNewOp<LLVM::BrOp>(
143143
op, adaptor.getOperands(), *convertedBlock);
144144
// TODO: We should not just forward all attributes like that. But there are
@@ -167,7 +167,7 @@ struct CondBranchOpLowering : public ConvertOpToLLVMPattern<cf::CondBranchOp> {
167167
TypeRange(adaptor.getFalseDestOperands()));
168168
if (failed(convertedFalseBlock))
169169
return failure();
170-
auto attrs = op->getAttrDictionary();
170+
DictionaryAttr attrs = op->getAttrDictionary();
171171
auto newOp = rewriter.replaceOpWithNewOp<LLVM::CondBrOp>(
172172
op, adaptor.getCondition(), adaptor.getTrueDestOperands(),
173173
adaptor.getFalseDestOperands(), op.getBranchWeightsAttr(),

0 commit comments

Comments
 (0)