diff options
author | David Spickett <david.spickett@linaro.org> | 2025-07-15 09:52:51 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2025-07-15 09:54:58 +0000 |
commit | a64bfd8a5186bc5b967878689509db81b9d1922c (patch) | |
tree | 0eceb77efa24401dbae3279f5afb9bd4e63be7d6 /llvm/lib/CodeGen/SafeStack.cpp | |
parent | b2eb7b070115cd6c17b9d1d164d52ac5e0d16b14 (diff) | |
download | llvm-a64bfd8a5186bc5b967878689509db81b9d1922c.zip llvm-a64bfd8a5186bc5b967878689509db81b9d1922c.tar.gz llvm-a64bfd8a5186bc5b967878689509db81b9d1922c.tar.bz2 |
[lldb] Fix Disasembler build error on 32-bit systems
After changes in https://github.com/llvm/llvm-project/pull/145793.
/home/david.spickett/llvm-project/lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp:1360:49: 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 int')
1360 | status = m_disasm_up->getInstruction(mc_inst, size, data, pc, llvm::nulls());
| ^~~~
/home/david.spickett/llvm-project/llvm/include/llvm/MC/MCDisassembler/MCDisassembler.h:135:64: note: passing argument to parameter 'Size' here
135 | virtual DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
| ^
1 error generated.
The type used in the LLVM method we call is uin64_t so use that instead.
It's overkill for what it is, but that's a separate issue if anyone cares.
Also removed the unused form of GetMCInst.
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
0 files changed, 0 insertions, 0 deletions