mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Pacify a noisy compiler, and sink this variable declaration closer to its uses.
llvm-svn: 115206
This commit is contained in:
parent
5adba2c2ff
commit
f469b071a2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user