Skip to content

Commit

Permalink
Fix for r162954. Return the Error.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162955 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Chad Rosier committed Aug 30, 2012
1 parent 64b3444 commit fafa283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5374,8 +5374,8 @@ validateInstruction(MCInst &Inst,
((ARMOperand*)Operands[5])->getReg()) &&
(((ARMOperand*)Operands[3])->getReg() !=
((ARMOperand*)Operands[4])->getReg())) {
Error(Operands[3]->getStartLoc(),
"destination register must match source register");
return Error(Operands[3]->getStartLoc(),
"destination register must match source register");
}
break;
}
Expand Down

0 comments on commit fafa283

Please sign in to comment.