diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-10-31 07:33:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-10-31 07:33:13 +0000 |
| commit | 968f803928ff389513d1feacd3242a3ed1a6c5a9 (patch) | |
| tree | 228db4c570c2f68126c9da87105a3c581578d38c /llvm/lib | |
| parent | 59bf47217e10c9bd41744079c0920099a02e39f8 (diff) | |
| download | bcm5719-llvm-968f803928ff389513d1feacd3242a3ed1a6c5a9.tar.gz bcm5719-llvm-968f803928ff389513d1feacd3242a3ed1a6c5a9.zip | |
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.
llvm-svn: 31310
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 6a2a8e79c1b..374f5673094 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2417,7 +2417,11 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) { GetRegistersForValue(ConstraintCode, ConstraintVTs[i], true, UsesInputRegister, 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) { assert(RetValRegs.Regs.empty() && |

