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:
722cc1f
)
Pacify a noisy compiler, and sink this variable declaration closer to its uses.
author
Nick Lewycky
<nicholas@mxc.ca>
Thu, 30 Sep 2010 21:04:13 +0000
(21:04 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Thu, 30 Sep 2010 21:04:13 +0000
(21:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115206
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 c4fce2be6ee309051bd12a3e1a0a325ad7b4421b..9efa772925344f76c1c3954e52654c8cf967e92b 100644
(file)
--- a/
lib/AsmParser/LLParser.cpp
+++ b/
lib/AsmParser/LLParser.cpp
@@
-1131,7
+1131,6
@@
bool LLParser::ParseInstructionMetadata(Instruction *Inst,
Lex.Lex();
MDNode *Node;
- unsigned NodeID;
SMLoc Loc = Lex.getLoc();
if (ParseToken(lltok::exclaim, "expected '!' here"))
@@
-1148,6
+1147,7
@@
bool LLParser::ParseInstructionMetadata(Instruction *Inst,
assert(ID.Kind == ValID::t_MDNode);
Inst->setMetadata(MDK, ID.MDNodeVal);
} else {
+ unsigned NodeID = 0;
if (ParseMDNodeID(Node, NodeID))
return true;
if (Node) {