[llvm] r176341 - GCC thinks that this variable might be used uninitialized (it isn't).

Duncan Sands baldrick at free.fr
Fri Mar 1 01:46:03 PST 2013


Author: baldrick
Date: Fri Mar  1 03:46:03 2013
New Revision: 176341

URL: http://llvm.org/viewvc/llvm-project?rev=176341&view=rev
Log:
GCC thinks that this variable might be used uninitialized (it isn't).

Modified:
    llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp

Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=176341&r1=176340&r2=176341&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Fri Mar  1 03:46:03 2013
@@ -2080,7 +2080,7 @@ MatchAndEmitInstruction(SMLoc IDLoc, uns
   // 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,





More information about the llvm-commits mailing list