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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176341 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmParser/X86AsmParser.cpp

index b2c6d55026dcf85c0c0bb24817438c3a238e34f7..ee5c2b2bfdc915d35a4055005e22fc7828124df2 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,