summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-07-23 23:48:02 +0000
committerJim Grosbach <grosbach@apple.com>2010-07-23 23:48:02 +0000
commit734738d3bdbb98454a4c517252ef694cd95f4cb6 (patch)
tree25e892fc75e2889c6cacb5803cf374ea17d6fa54 /lib/CodeGen/MachineFunction.cpp
parent19d92fcae209cbd43d23a080a5166707600c0041 (diff)
downloadllvm-734738d3bdbb98454a4c517252ef694cd95f4cb6.tar.gz
llvm-734738d3bdbb98454a4c517252ef694cd95f4cb6.tar.bz2
llvm-734738d3bdbb98454a4c517252ef694cd95f4cb6.tar.xz
Remove too-strict assertion. We may want the vreg copy of the physical register
to be of a different register class. For example, in Thumb1 if the live-in is a high register, we want the vreg to be a low register. rdar://8224931 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 666120f032..9a52b7b0b4 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -397,7 +397,6 @@ void MachineFunction::viewCFGOnly() const
/// create a corresponding virtual register for it.
unsigned MachineFunction::addLiveIn(unsigned PReg,
const TargetRegisterClass *RC) {
- assert(RC->contains(PReg) && "Not the correct regclass!");
MachineRegisterInfo &MRI = getRegInfo();
unsigned VReg = MRI.getLiveInVirtReg(PReg);
if (VReg) {