summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM64/Disassembler
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-03-31 07:59:33 +0000
committerAlexey Samsonov <samsonov@google.com>2014-03-31 07:59:33 +0000
commit23aaf2a1824a266c5fd1787af88a7c2f38fb3807 (patch)
tree22c7d407d45ddc3882e4fee5a47e44fe1f295bdd /llvm/lib/Target/ARM64/Disassembler
parent070a752d7e9965eaeac8d58e289074e06cbc2cc6 (diff)
downloadbcm5719-llvm-23aaf2a1824a266c5fd1787af88a7c2f38fb3807.tar.gz
bcm5719-llvm-23aaf2a1824a266c5fd1787af88a7c2f38fb3807.zip
Try to fix MSan bootstrap bot: make ARM64Disassembler::getInstruction() always initialize Size argument.
llvm-svn: 205171
Diffstat (limited to 'llvm/lib/Target/ARM64/Disassembler')
-rw-r--r--llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp b/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp
index 800eaae27e6..1af8b2f498c 100644
--- a/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp
+++ b/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp
@@ -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;
}
OpenPOWER on IntegriCloud