forked from OSchip/llvm-project
[mlir] Fix compile errors with bytecode support
This commit is contained in:
parent
41d4067d0b
commit
59548fe873
|
@ -165,14 +165,14 @@ public:
|
|||
/// contents of the section in `sectionData`.
|
||||
LogicalResult parseSection(bytecode::Section::ID §ionID,
|
||||
ArrayRef<uint8_t> §ionData) {
|
||||
size_t length;
|
||||
uint64_t length;
|
||||
if (failed(parseByte(sectionID)) || failed(parseVarInt(length)))
|
||||
return failure();
|
||||
if (sectionID >= bytecode::Section::kNumSections)
|
||||
return emitError("invalid section ID: ", unsigned(sectionID));
|
||||
|
||||
// Parse the actua section data now that we have its length.
|
||||
return parseBytes(length, sectionData);
|
||||
return parseBytes(static_cast<size_t>(length), sectionData);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -6189,6 +6189,7 @@ cc_library(
|
|||
hdrs = ["include/mlir/Tools/mlir-opt/MlirOptMain.h"],
|
||||
includes = ["include"],
|
||||
deps = [
|
||||
":BytecodeReader",
|
||||
":BytecodeWriter",
|
||||
":IR",
|
||||
":Parser",
|
||||
|
|
Loading…
Reference in New Issue