[mlir] Fix compile errors with bytecode support
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user