projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e366a
)
Pacify gcc-4.3 (thinks IsConstant may be used
author
Duncan Sands
<baldrick@free.fr>
Tue, 10 Feb 2009 16:24:55 +0000
(16:24 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Tue, 10 Feb 2009 16:24:55 +0000
(16:24 +0000)
uninitialized).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64220
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/lib/AsmParser/LLParser.cpp
b/lib/AsmParser/LLParser.cpp
index 696ab902cdc9e554ef347068dd8163039939767c..cddb343a5617a49dcea0d17b17421518749ceb29 100644
(file)
--- 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;
}