diff options
| author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-12-31 14:00:31 -0500 |
|---|---|---|
| committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-01-01 17:29:04 -0500 |
| commit | 2b223bd1c7d5bdd019aac4f540e8b60d339348a3 (patch) | |
| tree | ffac62770ff95cc4d942d80f50f3be607b4cef21 /mlir/lib/IR | |
| parent | fb170fd652bf2fcc4c2cd54aaf384591d8df266b (diff) | |
| download | bcm5719-llvm-2b223bd1c7d5bdd019aac4f540e8b60d339348a3.tar.gz bcm5719-llvm-2b223bd1c7d5bdd019aac4f540e8b60d339348a3.zip | |
[mlir] Fix warnings when compiling with Clang 9.0
Fixes: warning: comparison of integers of different signs: 'const unsigned int' and '(anonymous namespace)::OperationPrinter::(anonymous enum at F:\llvm-project\mlir\lib\IR\AsmPrinter.cpp:1444:3)' [-Wsign-compare]
Diffstat (limited to 'mlir/lib/IR')
| -rw-r--r-- | mlir/lib/IR/AsmPrinter.cpp | 4 |
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 ®ion, 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(); |

