mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
Pacify a noisy compiler, and sink this variable declaration closer to its uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115206 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
722cc1f414
commit
c6877b4ee1
@ -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