[Mlir-commits] [mlir] [mlir][cf] Do not access erased operation in `cf.cond_br` lowering (PR #148358)
Markus Böck
llvmlistbot at llvm.org
Sat Jul 12 06:21:36 PDT 2025
================
@@ -138,11 +138,12 @@ struct BranchOpLowering : public ConvertOpToLLVMPattern<cf::BranchOp> {
TypeRange(adaptor.getOperands()));
if (failed(convertedBlock))
return failure();
+ auto attrs = op->getAttrDictionary();
----------------
zero9178 wrote:
```suggestion
DictionaryAttr attrs = op->getAttrDictionary();
```
https://github.com/llvm/llvm-project/pull/148358
More information about the Mlir-commits
mailing list