mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
Turn an assert into an error message. This is commonly triggered when
we don't support a specific constraint yet. When this happens, print the unsupported constraint. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
94b6d6eb6b
commit
d03f1581c8
@ -2417,7 +2417,11 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
|
|||||||
GetRegistersForValue(ConstraintCode, ConstraintVTs[i],
|
GetRegistersForValue(ConstraintCode, ConstraintVTs[i],
|
||||||
true, UsesInputRegister,
|
true, UsesInputRegister,
|
||||||
OutputRegs, InputRegs);
|
OutputRegs, InputRegs);
|
||||||
assert(!Regs.Regs.empty() && "Couldn't allocate output reg!");
|
if (Regs.Regs.empty()) {
|
||||||
|
std::cerr << "Couldn't allocate output reg for contraint '"
|
||||||
|
<< ConstraintCode << "'!\n";
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (!Constraints[i].isIndirectOutput) {
|
if (!Constraints[i].isIndirectOutput) {
|
||||||
assert(RetValRegs.Regs.empty() &&
|
assert(RetValRegs.Regs.empty() &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user