Skip to content

Commit fbeab2c

Browse files
authored
[mlir][drr] Use fully qualified name in getValueAndRangeUse (llvm#139847)
1 parent 1377535 commit fbeab2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/TableGen/Pattern.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ std::string SymbolInfoMap::SymbolInfo::getValueAndRangeUse(
304304
assert(index < 0);
305305
auto *operand = cast<NamedTypeConstraint *>(op->getArg(getArgIndex()));
306306
if (operand->isOptional()) {
307-
auto repl =
308-
formatv(fmt, formatv("({0}.empty() ? Value() : *{0}.begin())", name));
307+
auto repl = formatv(
308+
fmt, formatv("({0}.empty() ? ::mlir::Value() : *{0}.begin())", name));
309309
LLVM_DEBUG(dbgs() << repl << " (OptionalOperand)\n");
310310
return std::string(repl);
311311
}

0 commit comments

Comments
 (0)