GCC thinks that this variable might be used uninitialized (it isn't).
authorDuncan Sands <baldrick@free.fr>
Fri, 1 Mar 2013 09:46:03 +0000 (09:46 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 1 Mar 2013 09:46:03 +0000 (09:46 +0000)
llvm-svn: 176341

llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp

index b2c6d55..ee5c2b2 100644 (file)
@@ -2080,7 +2080,7 @@ MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
   // Check for the various suffix matches.
   Tmp[Base.size()] = Suffixes[0];
   unsigned ErrorInfoIgnore;
-  unsigned ErrorInfoMissingFeature;
+  unsigned ErrorInfoMissingFeature = 0; // Init suppresses compiler warnings.
   unsigned Match1, Match2, Match3, Match4;
 
   Match1 = MatchInstructionImpl(Operands, Inst, ErrorInfoIgnore,