File tree 2 files changed +3
-2
lines changed
utils/bazel/llvm-project-overlay/mlir
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -165,14 +165,14 @@ class EncodingReader {
165
165
// / contents of the section in `sectionData`.
166
166
LogicalResult parseSection (bytecode::Section::ID §ionID,
167
167
ArrayRef<uint8_t > §ionData) {
168
- size_t length;
168
+ uint64_t length;
169
169
if (failed (parseByte (sectionID)) || failed (parseVarInt (length)))
170
170
return failure ();
171
171
if (sectionID >= bytecode::Section::kNumSections )
172
172
return emitError (" invalid section ID: " , unsigned (sectionID));
173
173
174
174
// Parse the actua section data now that we have its length.
175
- return parseBytes (length, sectionData);
175
+ return parseBytes (static_cast < size_t >( length) , sectionData);
176
176
}
177
177
178
178
private:
Original file line number Diff line number Diff line change @@ -6189,6 +6189,7 @@ cc_library(
6189
6189
hdrs = ["include/mlir/Tools/mlir-opt/MlirOptMain.h" ],
6190
6190
includes = ["include" ],
6191
6191
deps = [
6192
+ ":BytecodeReader" ,
6192
6193
":BytecodeWriter" ,
6193
6194
":IR" ,
6194
6195
":Parser" ,
You can’t perform that action at this time.
0 commit comments