[llvm-commits] [llvm] r115206 - /llvm/trunk/lib/AsmParser/LLParser.cpp
Nick Lewycky
nicholas at mxc.ca
Thu Sep 30 14:04:13 PDT 2010
Author: nicholas
Date: Thu Sep 30 16:04:13 2010
New Revision: 115206
URL: http://llvm.org/viewvc/llvm-project?rev=115206&view=rev
Log:
Pacify a noisy compiler, and sink this variable declaration closer to its uses.
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=115206&r1=115205&r2=115206&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Thu Sep 30 16:04:13 2010
@@ -1131,7 +1131,6 @@
Lex.Lex();
MDNode *Node;
- unsigned NodeID;
SMLoc Loc = Lex.getLoc();
if (ParseToken(lltok::exclaim, "expected '!' here"))
@@ -1148,6 +1147,7 @@
assert(ID.Kind == ValID::t_MDNode);
Inst->setMetadata(MDK, ID.MDNodeVal);
} else {
+ unsigned NodeID = 0;
if (ParseMDNodeID(Node, NodeID))
return true;
if (Node) {
More information about the llvm-commits
mailing list