summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/Thumb2RegisterInfo.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
commit55f1c09e31cfc6744fb682e17a2a1a00d914694c (patch)
treee753e20c7186dc8138bef58089274bb5162a7cef /llvm/lib/Target/ARM/Thumb2RegisterInfo.cpp
parent41a750271b72216801366693bd0f41672892c487 (diff)
downloadbcm5719-llvm-55f1c09e31cfc6744fb682e17a2a1a00d914694c.tar.gz
bcm5719-llvm-55f1c09e31cfc6744fb682e17a2a1a00d914694c.zip
Push LLVMContexts through the IntegerType APIs.
llvm-svn: 78948
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb2RegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/Thumb2RegisterInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2RegisterInfo.cpp b/llvm/lib/Target/ARM/Thumb2RegisterInfo.cpp
index 98be2041fd3..6c4c15dfe35 100644
--- a/llvm/lib/Target/ARM/Thumb2RegisterInfo.cpp
+++ b/llvm/lib/Target/ARM/Thumb2RegisterInfo.cpp
@@ -52,7 +52,8 @@ void Thumb2RegisterInfo::emitLoadConstPool(MachineBasicBlock &MBB,
unsigned PredReg) const {
MachineFunction &MF = *MBB.getParent();
MachineConstantPool *ConstantPool = MF.getConstantPool();
- Constant *C = ConstantInt::get(Type::Int32Ty, Val);
+ Constant *C = ConstantInt::get(
+ Type::getInt32Ty(MBB.getParent()->getFunction()->getContext()), Val);
unsigned Idx = ConstantPool->getConstantPoolIndex(C, 4);
BuildMI(MBB, MBBI, dl, TII.get(ARM::t2LDRpci))
OpenPOWER on IntegriCloud