diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp --- a/mlir/lib/IR/AsmPrinter.cpp +++ b/mlir/lib/IR/AsmPrinter.cpp @@ -2398,10 +2398,6 @@ os << "<>\n"; return; } - // Get the top-level op. - while (auto *nextOp = parentOp->getParentOp()) - parentOp = nextOp; - AsmState state(parentOp); printAsOperand(os, state); }