diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-22 01:41:37 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-22 01:41:37 +0000 |
commit | baf2e35e1862aaaec1fb94e0a24bbb3c8ea2819d (patch) | |
tree | 800d4d3ef419617428fcb2ef4cee6d2f40e7e41c /lib/Target/X86/Disassembler/X86DisassemblerDecoder.c | |
parent | 336e06bd0f7037cfc4bf6d6579d13b848bcebe1e (diff) |
Fix some may-be-uninitialized var warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91878 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/Disassembler/X86DisassemblerDecoder.c')
-rw-r--r-- | lib/Target/X86/Disassembler/X86DisassemblerDecoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c index 84c1dc945e..b757fcea49 100644 --- a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c +++ b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c @@ -64,7 +64,7 @@ static inline InstructionContext contextForAttrs(uint8_t attrMask) { static inline int modRMRequired(OpcodeType type, InstructionContext insnContext, uint8_t opcode) { - const struct ContextDecision* decision; + const struct ContextDecision* decision = 0; switch (type) { case ONEBYTE: @@ -714,8 +714,8 @@ static int getID(struct InternalInstruction* insn) { * @return - 0 if the SIB byte was successfully read; nonzero otherwise. */ static int readSIB(struct InternalInstruction* insn) { - SIBIndex sibIndexBase; - SIBBase sibBaseBase; + SIBIndex sibIndexBase = 0; + SIBBase sibBaseBase = 0; uint8_t index, base; dbgprintf(insn, "readSIB()"); |