[llvm-commits] [llvm] r56597 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Evan Cheng
evan.cheng at apple.com
Wed Sep 24 17:15:01 PDT 2008
Oops. Copy and paste error. This should have said:
If target cannot find a register for the inline asm constraint, output
an error message instead of asserting.
Evan
On Sep 24, 2008, at 5:14 PM, Evan Cheng wrote:
> Author: evancheng
> Date: Wed Sep 24 19:14:04 2008
> New Revision: 56597
>
> URL: http://llvm.org/viewvc/llvm-project?rev=56597&view=rev
> Log:
> <rdar://problem/6234798> Assertion failed: (!
> OpInfo.AssignedRegs.Regs.empty() && "Couldn't allocate input reg!")
>
> Modified:
> llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
>
> Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=56597&r1=56596&r2=56597&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
> (original)
> +++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Wed
> Sep 24 19:14:04 2008
> @@ -4940,8 +4940,11 @@
> "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);
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list