diff --git a/mlir/lib/TableGen/Pattern.cpp b/mlir/lib/TableGen/Pattern.cpp index ab605391faf6..13541de66578 100644 --- a/mlir/lib/TableGen/Pattern.cpp +++ b/mlir/lib/TableGen/Pattern.cpp @@ -304,8 +304,8 @@ std::string SymbolInfoMap::SymbolInfo::getValueAndRangeUse( assert(index < 0); auto *operand = cast(op->getArg(getArgIndex())); if (operand->isOptional()) { - auto repl = - formatv(fmt, formatv("({0}.empty() ? Value() : *{0}.begin())", name)); + auto repl = formatv( + fmt, formatv("({0}.empty() ? ::mlir::Value() : *{0}.begin())", name)); LLVM_DEBUG(dbgs() << repl << " (OptionalOperand)\n"); return std::string(repl); }