summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-08 22:53:09 +0000
committerChris Lattner <sabre@nondot.org>2005-03-08 22:53:09 +0000
commit1f1462fafa90a3e5f44edc0847096337982d87e7 (patch)
tree3f155cc62373de0d3abb82759b730800d61d8349 /llvm/lib/Target
parent00658b80fbd002869c6d73a07e8704f5945a3a63 (diff)
downloadbcm5719-llvm-1f1462fafa90a3e5f44edc0847096337982d87e7.tar.gz
bcm5719-llvm-1f1462fafa90a3e5f44edc0847096337982d87e7.zip
Fix a crash handling 'undef bool', fixing an llc crash on 186.crafty
llvm-svn: 20523
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
index 79b3c1bd36d..38e51abf03f 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
@@ -612,7 +612,7 @@ void PPC32ISel::copyConstantToRegister(MachineBasicBlock *MBB,
Constant *C, unsigned R) {
if (isa<UndefValue>(C)) {
BuildMI(*MBB, IP, PPC::IMPLICIT_DEF, 0, R);
- if (getClass(C->getType()) == cLong)
+ if (getClassB(C->getType()) == cLong)
BuildMI(*MBB, IP, PPC::IMPLICIT_DEF, 0, R+1);
return;
}
OpenPOWER on IntegriCloud