mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-02 09:33:59 +00:00
Turn an assert into an error to make it a bit more friendly.
Part of rdar://6880388 and rdar://11766377 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159590 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e45658cc3c
commit
9eb4f8a3e6
@ -6250,8 +6250,15 @@ void SelectionDAGBuilder::visitInlineAsm(ImmutableCallSite CS) {
|
||||
assert((OpInfo.ConstraintType == TargetLowering::C_RegisterClass ||
|
||||
OpInfo.ConstraintType == TargetLowering::C_Register) &&
|
||||
"Unknown constraint type!");
|
||||
assert(!OpInfo.isIndirect &&
|
||||
"Don't know how to handle indirect register inputs yet!");
|
||||
|
||||
// TODO: Support this.
|
||||
if (OpInfo.isIndirect) {
|
||||
LLVMContext &Ctx = *DAG.getContext();
|
||||
Ctx.emitError(CS.getInstruction(),
|
||||
"Don't know how to handle indirect register inputs yet "
|
||||
"for constraint '" + Twine(OpInfo.ConstraintCode) + "'");
|
||||
break;
|
||||
}
|
||||
|
||||
// Copy the input into the appropriate registers.
|
||||
if (OpInfo.AssignedRegs.Regs.empty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user