Change this from an assert to a cerr+exit, since it's diagnosing an

unsupported inline asm construct, rather than verifying a code invariant.

llvm-svn: 73435
This commit is contained in:
Dan Gohman 2009-06-15 22:32:41 +00:00
parent f691b829ab
commit 6e6808adaf
1 changed files with 6 additions and 2 deletions

View File

@ -5317,8 +5317,12 @@ void SelectionDAGLowering::visitInlineAsm(CallSite CS) {
if ((OpFlag & 7) == 2 /*REGDEF*/
|| (OpFlag & 7) == 6 /* EARLYCLOBBER REGDEF */) {
// Add (OpFlag&0xffff)>>3 registers to MatchedRegs.
assert(!OpInfo.isIndirect &&
"Don't know how to handle tied indirect register inputs yet!");
if (OpInfo.isIndirect) {
cerr << "llvm: error: "
"Don't know how to handle tied indirect "
"register inputs yet!\n";
exit(1);
}
RegsForValue MatchedRegs;
MatchedRegs.TLI = &TLI;
MatchedRegs.ValueVTs.push_back(InOperandVal.getValueType());