mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Try to fix MSan bootstrap bot: make ARM64Disassembler::getInstruction() always initialize Size argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
358d68d383
commit
285606027b
@ -195,9 +195,11 @@ DecodeStatus ARM64Disassembler::getInstruction(MCInst &MI, uint64_t &Size,
|
||||
|
||||
uint8_t bytes[4];
|
||||
|
||||
Size = 0;
|
||||
// We want to read exactly 4 bytes of data.
|
||||
if (Region.readBytes(Address, 4, (uint8_t *)bytes) == -1)
|
||||
return Fail;
|
||||
Size = 4;
|
||||
|
||||
// Encoded as a small-endian 32-bit word in the stream.
|
||||
uint32_t insn =
|
||||
@ -209,8 +211,6 @@ DecodeStatus ARM64Disassembler::getInstruction(MCInst &MI, uint64_t &Size,
|
||||
if (!result)
|
||||
return Fail;
|
||||
|
||||
Size = 4;
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user