Fix some may-be-uninitialized var warnings.
[oota-llvm.git] / lib / Target / X86 / Disassembler / X86DisassemblerDecoder.c
index 84c1dc945e1d1b9621a57d435b21f692d5ad9ed6..b757fcea49bee00226f625d9c21bab89831e54ff 100644 (file)
@@ -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()");