diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h --- a/mlir/include/mlir/IR/OpDefinition.h +++ b/mlir/include/mlir/IR/OpDefinition.h @@ -240,7 +240,7 @@ using PointerUnion::PointerUnion; public: - void dump() { llvm::errs() << *this << "\n"; } + void dump() const { llvm::errs() << *this << "\n"; } }; /// Allow printing to a stream.