[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


================
@@ -166,18 +167,14 @@ struct CondBranchOpLowering : public ConvertOpToLLVMPattern<cf::CondBranchOp> {
                           TypeRange(adaptor.getFalseDestOperands()));
     if (failed(convertedFalseBlock))
       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