From 59548fe873d8d98e359fb21fbb2a0852fed17ff5 Mon Sep 17 00:00:00 2001 From: Goran Flegar Date: Mon, 22 Aug 2022 17:59:51 +0200 Subject: [mlir] Fix compile errors with bytecode support --- mlir/lib/Bytecode/Reader/BytecodeReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp') diff --git a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp index c23640d1cfa0..cbb971910b69 100644 --- a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp +++ b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp @@ -165,14 +165,14 @@ public: /// contents of the section in `sectionData`. LogicalResult parseSection(bytecode::Section::ID §ionID, ArrayRef §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(length), sectionData); } private: -- cgit v1.2.3