projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c3c4f
)
[LLParser] Fix uninitialized flag variable warnings. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 27 May 2019 16:33:15 +0000
(16:33 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 27 May 2019 16:33:15 +0000
(16:33 +0000)
Fixes a large number of warnings in the scan-build report on llvm builds.
llvm-svn: 361772
llvm/lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/AsmParser/LLParser.cpp
b/llvm/lib/AsmParser/LLParser.cpp
index
f16f6a2
..
6af084e
100644
(file)
--- a/
llvm/lib/AsmParser/LLParser.cpp
+++ b/
llvm/lib/AsmParser/LLParser.cpp
@@
-8484,7
+8484,7
@@
bool LLParser::ParseGVFlags(GlobalValueSummary::GVFlags &GVFlags) {
return true;
do {
- unsigned Flag;
+ unsigned Flag
= 0
;
switch (Lex.getKind()) {
case lltok::kw_linkage:
Lex.Lex();
@@
-8536,7
+8536,7
@@
bool LLParser::ParseGVarFlags(GlobalVarSummary::GVarFlags &GVarFlags) {
assert(Lex.getKind() == lltok::kw_varFlags);
Lex.Lex();
- unsigned Flag;
+ unsigned Flag
= 0
;
if (ParseToken(lltok::colon, "expected ':' here") ||
ParseToken(lltok::lparen, "expected '(' here") ||
ParseToken(lltok::kw_readonly, "expected 'readonly' here") ||