forked from OSchip/llvm-project
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:
parent
2ec748cd5a
commit
d4f63052c4
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue