Fix for r162954. Return the Error.

llvm-svn: 162955
This commit is contained in:
Chad Rosier 2012-08-30 23:22:05 +00:00
parent 8513ffbb83
commit db482ef7a7
1 changed files with 2 additions and 2 deletions

View File

@ -5374,7 +5374,7 @@ validateInstruction(MCInst &Inst,
((ARMOperand*)Operands[5])->getReg()) &&
(((ARMOperand*)Operands[3])->getReg() !=
((ARMOperand*)Operands[4])->getReg())) {
Error(Operands[3]->getStartLoc(),
return Error(Operands[3]->getStartLoc(),
"destination register must match source register");
}
break;