aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-25 00:14:04 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-25 00:14:04 +0000
commit0adee05c7c1c98d6ab9084173ad3742a558d64f4 (patch)
tree2f0a1d588b76ba79560a39ae0cf688c71fc2ab86 /lib/CodeGen
parentc93e70764bfa48e3b2141a70cf8eae9de0047618 (diff)
downloadexternal_llvm-0adee05c7c1c98d6ab9084173ad3742a558d64f4.tar.gz
external_llvm-0adee05c7c1c98d6ab9084173ad3742a558d64f4.tar.bz2
external_llvm-0adee05c7c1c98d6ab9084173ad3742a558d64f4.zip
<rdar://problem/6234798> Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() && "Couldn't allocate input reg!")
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 1365d684f4..ac4a639ea3 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/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);