From 2e7450716aed1d622d994a3fd88b3d28a5d99a65 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 25 Sep 2008 00:14:04 +0000 Subject: Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() && "Couldn't allocate input reg!") llvm-svn: 56597 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG') 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); -- cgit v1.2.3