[llvm-commits] [llvm] r64220 - /llvm/trunk/lib/AsmParser/LLParser.cpp
Duncan Sands
baldrick at free.fr
Tue Feb 10 08:24:56 PST 2009
Author: baldrick
Date: Tue Feb 10 10:24:55 2009
New Revision: 64220
URL: http://llvm.org/viewvc/llvm-project?rev=64220&view=rev
Log:
Pacify gcc-4.3 (thinks IsConstant may be used
uninitialized).
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=64220&r1=64219&r2=64220&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Tue Feb 10 10:24:55 2009
@@ -331,8 +331,10 @@
IsConstant = true;
else if (Lex.getKind() == lltok::kw_global)
IsConstant = false;
- else
+ else {
+ IsConstant = false;
return TokError("expected 'global' or 'constant'");
+ }
Lex.Lex();
return false;
}
More information about the llvm-commits
mailing list