[Mlir-commits] [mlir] [mlir][dataflow] Fix DataFlowFramework crash by add isBlockEnd logic in the ProgramPoint::print (PR #173471)
Matthias Springer
llvmlistbot at llvm.org
Thu Dec 25 02:48:49 PST 2025
================
@@ -67,8 +67,10 @@ void ProgramPoint::print(raw_ostream &os) const {
<< OpWithFlags(getPrevOp(), OpPrintingFlags().skipRegions());
return;
}
- os << "<before operation>:"
- << OpWithFlags(getNextOp(), OpPrintingFlags().skipRegions());
+ if (!isBlockEnd()) {
----------------
matthias-springer wrote:
When can this happen? Is the block empty? In your example, I don't see an empty block. Is there something else that we can print here?
https://github.com/llvm/llvm-project/pull/173471
More information about the Mlir-commits
mailing list