[mlir][drr] Use fully qualified name in getValueAndRangeUse (#139847)

This commit is contained in:
Jacques Pienaar 2025-05-14 07:41:00 +02:00 committed by GitHub
parent 1377535d99
commit fbeab2c391
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,8 +304,8 @@ std::string SymbolInfoMap::SymbolInfo::getValueAndRangeUse(
assert(index < 0);
auto *operand = cast<NamedTypeConstraint *>(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);
}