diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-25 00:14:04 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-25 00:14:04 +0000 |
commit | 2e7450716aed1d622d994a3fd88b3d28a5d99a65 (patch) | |
tree | 4974aff143e9cdbc8e66dc6143b751e6ae4b0b95 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | 382e2ec6b7acc68229d9ca666aefc42c46eeaa4c (diff) | |
download | bcm5719-llvm-2e7450716aed1d622d994a3fd88b3d28a5d99a65.tar.gz bcm5719-llvm-2e7450716aed1d622d994a3fd88b3d28a5d99a65.zip |
<rdar://problem/6234798> Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() && "Couldn't allocate input reg!")
llvm-svn: 56597
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 1365d684f4d..ac4a639ea31 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -4940,8 +4940,11 @@ void SelectionDAGLowering::visitInlineAsm(CallSite CS) { "Don't know how to handle indirect register inputs yet!"); // Copy the input into the appropriate registers. - assert(!OpInfo.AssignedRegs.Regs.empty() && - "Couldn't allocate input reg!"); + if (OpInfo.AssignedRegs.Regs.empty()) { + cerr << "Couldn't allocate output reg for constraint '" + << OpInfo.ConstraintCode << "'!\n"; + exit(1); + } OpInfo.AssignedRegs.getCopyToRegs(InOperandVal, DAG, Chain, &Flag); |