summaryrefslogtreecommitdiff
path: root/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2022-08-22 01:31:31 -0700
committerRiver Riddle <riddleriver@gmail.com>2022-08-22 01:31:39 -0700
commit93cf0e8a28e8c682f65d3e5c394d1eb169ca09ce (patch)
treeba4ac9ac408ee07bb2aacc1df11a1e1c2efa4e37 /mlir/lib/Bytecode/Reader/BytecodeReader.cpp
parenta1c42cb80354cfa6ee99ea8cb1e5cab62c1f13d5 (diff)
[mlir] Fix bots after bytecode support was added in D131747
* Fix ambiguous Twine constructor call * Ensure shift is 64-bit (for MSVC) * Disable bytecode tests on s390x (we don't support big endian right now)
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();
}
}