From: Nick Lewycky Date: Thu, 30 Sep 2010 21:04:13 +0000 (+0000) Subject: Pacify a noisy compiler, and sink this variable declaration closer to its uses. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c6877b4ee11e1937b185114680a983facf9a29f8;p=oota-llvm.git 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 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index c4fce2be6ee..9efa7729253 100644 --- 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) {