summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-09-03 01:55:11 +0000
committerChad Rosier <mcrosier@apple.com>2012-09-03 01:55:11 +0000
commit10f14bcbda8275039b2759f3f9d7aacffbc5fbe8 (patch)
tree548db370f7e4f437a2eebcbaf45ef9f056bbf943 /llvm
parent102f85655f9cd455bbb8350555291800ba14762a (diff)
downloadbcm5719-llvm-10f14bcbda8275039b2759f3f9d7aacffbc5fbe8.tar.gz
bcm5719-llvm-10f14bcbda8275039b2759f3f9d7aacffbc5fbe8.zip
Move ErrorLoc decl into the scope where it's actually used.
llvm-svn: 163100
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp b/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
index 94e71d159c3..70d0282519a 100644
--- a/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
+++ b/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
@@ -317,7 +317,6 @@ MatchAndEmitInstruction(SMLoc IDLoc,
SmallVectorImpl<MCParsedAsmOperand*> &Operands,
MCStreamer &Out) {
MCInst Inst;
- SMLoc ErrorLoc;
unsigned ErrorInfo;
switch (MatchInstructionImpl(Operands, Inst, ErrorInfo)) {
@@ -330,7 +329,7 @@ MatchAndEmitInstruction(SMLoc IDLoc,
case Match_MnemonicFail:
return Error(IDLoc, "unrecognized instruction mnemonic");
case Match_InvalidOperand:
- ErrorLoc = IDLoc;
+ SMLoc ErrorLoc = IDLoc;
if (ErrorInfo != ~0U) {
if (ErrorInfo >= Operands.size())
return Error(IDLoc, "too few operands for instruction");
OpenPOWER on IntegriCloud