From: Evan Cheng Date: Thu, 25 Sep 2008 00:14:04 +0000 (+0000) Subject: Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() &&... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa765b8c35aa3a5cca9681d6e3c44091d94f23d9;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 1365d684f4d..ac4a639ea31 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);