summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mlir/lib/IR/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp
index 881a6365e20..afe7ab65194 100644
--- a/mlir/lib/IR/AsmPrinter.cpp
+++ b/mlir/lib/IR/AsmPrinter.cpp
@@ -1840,7 +1840,7 @@ void OperationPrinter::printValueIDImpl(Value value, bool printResultNo,
}
stream << '%';
- if (it->second != nameSentinel) {
+ if (it->second != (unsigned)nameSentinel) {
stream << it->second;
} else {
auto nameIt = valueNames.find(lookupValue);
@@ -1876,7 +1876,7 @@ void OperationPrinter::shadowRegionArgs(Region &region, ValueRange namesToUse) {
printValueIDImpl(nameToUse, /*printResultNo=*/true, nameStream);
// Entry block arguments should already have a pretty "arg" name.
- assert(valueIDs[nameToReplace] == nameSentinel);
+ assert(valueIDs[nameToReplace] == (unsigned)nameSentinel);
// Use the name without the leading %.
auto name = StringRef(nameStream.str()).drop_front();
OpenPOWER on IntegriCloud