aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86FloatingPointRegKill.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-13 21:58:54 +0000
committerOwen Anderson <resistor@mac.com>2009-08-13 21:58:54 +0000
commit35b4707edb32008b1a7976dcbf3920b1160fc1c6 (patch)
tree2cdabe223bfce83bd12e10dd557147a2f68c9bf8 /lib/Target/X86/X86FloatingPointRegKill.cpp
parentdfa78d19236fe2c33733c916f45d25ba46e0773f (diff)
downloadexternal_llvm-35b4707edb32008b1a7976dcbf3920b1160fc1c6.zip
external_llvm-35b4707edb32008b1a7976dcbf3920b1160fc1c6.tar.gz
external_llvm-35b4707edb32008b1a7976dcbf3920b1160fc1c6.tar.bz2
Push LLVMContexts through the IntegerType APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FloatingPointRegKill.cpp')
-rw-r--r--lib/Target/X86/X86FloatingPointRegKill.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FloatingPointRegKill.cpp b/lib/Target/X86/X86FloatingPointRegKill.cpp
index 292f8f4..3e0385c 100644
--- a/lib/Target/X86/X86FloatingPointRegKill.cpp
+++ b/lib/Target/X86/X86FloatingPointRegKill.cpp
@@ -118,9 +118,10 @@ bool FPRegKiller::runOnMachineFunction(MachineFunction &MF) {
!ContainsFPCode && SI != E; ++SI) {
for (BasicBlock::const_iterator II = SI->begin();
(PN = dyn_cast<PHINode>(II)); ++II) {
- if (PN->getType()==Type::X86_FP80Ty ||
+ if (PN->getType()==Type::getX86_FP80Ty(LLVMBB->getContext()) ||
(!Subtarget.hasSSE1() && PN->getType()->isFloatingPoint()) ||
- (!Subtarget.hasSSE2() && PN->getType()==Type::DoubleTy)) {
+ (!Subtarget.hasSSE2() &&
+ PN->getType()==Type::getDoubleTy(LLVMBB->getContext()))) {
ContainsFPCode = true;
break;
}