aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/PowerPC/PPC32ISelSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPC32ISelSimple.cpp b/lib/Target/PowerPC/PPC32ISelSimple.cpp
index 79b3c1bd36..38e51abf03 100644
--- a/lib/Target/PowerPC/PPC32ISelSimple.cpp
+++ b/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;
}