summaryrefslogtreecommitdiff
path: root/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
-rw-r--r--mlir/lib/Bytecode/Reader/BytecodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
index 3168ce6f9c2f..c23640d1cfa0 100644
--- a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
+++ b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
@@ -40,7 +40,7 @@ static std::string toString(bytecode::Section::ID sectionID) {
case bytecode::Section::kIR:
return "IR (4)";
default:
- return ("Unknown (" + Twine(sectionID) + ")").str();
+ return ("Unknown (" + Twine(static_cast<unsigned>(sectionID)) + ")").str();
}
}