<rdar://problem/6234798> Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() &&...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 25 Sep 2008 00:14:04 +0000 (00:14 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 25 Sep 2008 00:14:04 +0000 (00:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56597 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

index 1365d684f4d7e1d68d547f992d8e50521011d86a..ac4a639ea31b01470b9773cf035ecf9c6dc70fd3 100644 (file)
@@ -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);