From: Duncan Sands Date: Tue, 10 Feb 2009 16:24:55 +0000 (+0000) Subject: Pacify gcc-4.3 (thinks IsConstant may be used X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=35b5107951582f58bf9d6f786fdddbf7811420fd;p=oota-llvm.git Pacify gcc-4.3 (thinks IsConstant may be used uninitialized). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64220 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 696ab902cdc..cddb343a561 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -331,8 +331,10 @@ bool LLParser::ParseGlobalType(bool &IsConstant) { 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; }