summaryrefslogtreecommitdiff
path: root/mlir/lib/Bytecode/BytecodeOpInterface.cpp
diff options
context:
space:
mode:
authorJie Fu <jiefu@tencent.com>2023-05-26 10:02:21 +0800
committerJie Fu <jiefu@tencent.com>2023-05-26 10:02:21 +0800
commitab80ad0095083fda062c23ac90df84c40b4332c8 (patch)
tree8dc4889a418323f802ecbe4166bb8865d0f89624 /mlir/lib/Bytecode/BytecodeOpInterface.cpp
parentcb9f2de2e80292c0445c99be754fcc78b94b0f16 (diff)
[mlir] Fix non-const lvalue reference to type 'uint64_t' cannot bind to type 'size_t' error (NFC)
/Users/jiefu/llvm-project/mlir/lib/Bytecode/Reader/BytecodeReader.cpp:1007:39: error: non-const lvalue reference to type 'uint64_t' (aka 'unsigned long long') cannot bind to a value of unrelated type 'size_t' (aka 'unsigned long') if (failed(propReader.parseVarInt(count))) ^~~~~ /Users/jiefu/llvm-project/mlir/lib/Bytecode/Reader/BytecodeReader.cpp:191:39: note: passing argument to parameter 'result' here LogicalResult parseVarInt(uint64_t &result) { ^ /Users/jiefu/llvm-project/mlir/lib/Bytecode/Reader/BytecodeReader.cpp:1033:41: error: non-const lvalue reference to type 'uint64_t' (aka 'unsigned long long') cannot bind to a value of unrelated type 'size_t' (aka 'unsigned long') if (failed(dialectReader.readVarInt(propertiesIdx))) ^~~~~~~~~~~~~ /Users/jiefu/llvm-project/mlir/lib/Bytecode/Reader/BytecodeReader.cpp:926:38: note: passing argument to parameter 'result' here LogicalResult readVarInt(uint64_t &result) override { ^ 2 errors generated. /Users/jiefu/llvm-project/mlir/lib/Bytecode/Reader/BytecodeReader.cpp:1033:41: error: non-const lvalue reference to type 'uint64_t' (aka 'unsigned long long') cannot bind to a value of unrelated type 'size_t' (aka 'unsigned long') if (failed(dialectReader.readVarInt(propertiesIdx))) ^~~~~~~~~~~~~ /Users/jiefu/llvm-project/mlir/lib/Bytecode/Reader/BytecodeReader.cpp:926:38: note: passing argument to parameter 'result' here LogicalResult readVarInt(uint64_t &result) override { ^ 1 error generated.
Diffstat (limited to 'mlir/lib/Bytecode/BytecodeOpInterface.cpp')
0 files changed, 0 insertions, 0 deletions