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 | 8b532de41866c7bbd65b5d97fdaa8c6e93031208 (patch) | |
tree | 09acdcd9b19fd45299baba7880068b3cce41e977 /llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c | |
parent | 3d1205b3a8c324369e4e8118ebd98f3a9f53ff6e (diff) | |
download | bcm5719-llvm-8b532de41866c7bbd65b5d97fdaa8c6e93031208.tar.gz bcm5719-llvm-8b532de41866c7bbd65b5d97fdaa8c6e93031208.zip |
Fix some may-be-uninitialized var warnings.
llvm-svn: 91878
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c')
-rw-r--r-- | llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c index 84c1dc945e1..b757fcea49b 100644 --- a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c +++ b/llvm/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()"); |