[Mlir-commits] [mlir] [mlir][drr] Use fully qualified name in getValueAndRangeUse (PR #139847)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue May 13 22:32:41 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Jacques Pienaar (jpienaar)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/139847.diff
1 Files Affected:
- (modified) mlir/lib/TableGen/Pattern.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/TableGen/Pattern.cpp b/mlir/lib/TableGen/Pattern.cpp
index ab605391faf6a..e36a7f814331b 100644
--- a/mlir/lib/TableGen/Pattern.cpp
+++ b/mlir/lib/TableGen/Pattern.cpp
@@ -305,7 +305,7 @@ std::string SymbolInfoMap::SymbolInfo::getValueAndRangeUse(
auto *operand = cast<NamedTypeConstraint *>(op->getArg(getArgIndex()));
if (operand->isOptional()) {
auto repl =
- formatv(fmt, formatv("({0}.empty() ? Value() : *{0}.begin())", name));
+ formatv(fmt, formatv("({0}.empty() ? ::mlir::Value() : *{0}.begin())", name));
LLVM_DEBUG(dbgs() << repl << " (OptionalOperand)\n");
return std::string(repl);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/139847
More information about the Mlir-commits
mailing list