[llvm-commits] [llvm] r91878 - /llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
Daniel Dunbar
daniel at zuster.org
Mon Dec 21 17:41:37 PST 2009
Author: ddunbar
Date: Mon Dec 21 19:41:37 2009
New Revision: 91878
URL: http://llvm.org/viewvc/llvm-project?rev=91878&view=rev
Log:
Fix some may-be-uninitialized var warnings.
Modified:
llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
Modified: llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c?rev=91878&r1=91877&r2=91878&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c Mon Dec 21 19:41:37 2009
@@ -64,7 +64,7 @@
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 @@
* @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()");
More information about the llvm-commits
mailing list