diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-14 23:09:55 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-14 23:09:55 +0000 |
commit | b6b2530000366d6982736dd0d0cc3585b01cf37b (patch) | |
tree | fbc341c4197153ef4908d7b6b75b5b2b57a1b46f /llvm/lib/Transforms/IPO/RaiseAllocations.cpp | |
parent | eea582f04f1a8fb0d1b81e45e83e9c116869a502 (diff) | |
download | bcm5719-llvm-b6b2530000366d6982736dd0d0cc3585b01cf37b.tar.gz bcm5719-llvm-b6b2530000366d6982736dd0d0cc3585b01cf37b.zip |
Move EVER MORE stuff over to LLVMContext.
llvm-svn: 75703
Diffstat (limited to 'llvm/lib/Transforms/IPO/RaiseAllocations.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/RaiseAllocations.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp index 6c320509097..ce976c8d69e 100644 --- a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp @@ -169,7 +169,8 @@ bool RaiseAllocations::runOnModule(Module &M) { CastInst::CreateIntegerCast(Source, Type::Int32Ty, false/*ZExt*/, "MallocAmtCast", I); - MallocInst *MI = new MallocInst(Type::Int8Ty, Source, "", I); + MallocInst *MI = new MallocInst(*Context, Type::Int8Ty, + Source, "", I); MI->takeName(I); I->replaceAllUsesWith(MI); |