Add an assert to turn a segfault on an unsupported inline

asm construct into an assertion failure.

llvm-svn: 71757
This commit is contained in:
Dan Gohman 2009-05-14 00:30:16 +00:00
parent 2ec748cd5a
commit d4f63052c4
1 changed files with 2 additions and 0 deletions

View File

@ -5325,6 +5325,8 @@ 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!");
RegsForValue MatchedRegs;
MatchedRegs.TLI = &TLI;
MatchedRegs.ValueVTs.push_back(InOperandVal.getValueType());