This assert is overly restrictive and does not work for mips16.

llvm-svn: 170667
This commit is contained in:
Reed Kotler 2012-12-20 05:09:15 +00:00
parent 64e25ce53d
commit 92fc33bc97
1 changed files with 0 additions and 1 deletions

View File

@ -1048,7 +1048,6 @@ LowerOperation(SDValue Op, SelectionDAG &DAG) const
static unsigned
AddLiveIn(MachineFunction &MF, unsigned PReg, const TargetRegisterClass *RC)
{
assert(RC->contains(PReg) && "Not the correct regclass!");
unsigned VReg = MF.getRegInfo().createVirtualRegister(RC);
MF.getRegInfo().addLiveIn(PReg, VReg);
return VReg;