[llvm-commits] [llvm] r162955 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Chad Rosier
mcrosier at apple.com
Thu Aug 30 16:22:05 PDT 2012
Author: mcrosier
Date: Thu Aug 30 18:22:05 2012
New Revision: 162955
URL: http://llvm.org/viewvc/llvm-project?rev=162955&view=rev
Log:
Fix for r162954. Return the Error.
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=162955&r1=162954&r2=162955&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Thu Aug 30 18:22:05 2012
@@ -5374,8 +5374,8 @@
((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;
}
More information about the llvm-commits
mailing list