diff options
| author | Duncan Sands <baldrick@free.fr> | 2009-02-10 16:24:55 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2009-02-10 16:24:55 +0000 |
| commit | bdc3a152a736a0eb77103806295e9394390441ab (patch) | |
| tree | 87419481e0000aaa633766ccea9ab47505a76b56 /lib/AsmParser | |
| parent | 4b38e9aa014d2d3fdb682b7f23b8a702fcbdd068 (diff) | |
| download | external_llvm-bdc3a152a736a0eb77103806295e9394390441ab.zip external_llvm-bdc3a152a736a0eb77103806295e9394390441ab.tar.gz external_llvm-bdc3a152a736a0eb77103806295e9394390441ab.tar.bz2 | |
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
Diffstat (limited to 'lib/AsmParser')
| -rw-r--r-- | lib/AsmParser/LLParser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 696ab90..cddb343 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; } |
