diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-03 19:42:02 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-03 19:42:02 +0000 |
| commit | fa5cbd6d0fbda23fd669c8718e07b19001b2d21a (patch) | |
| tree | 5875268d45e9e6de6b9a270487eaf3351e39db6d /lib/Transforms/Scalar/Reg2Mem.cpp | |
| parent | 715029478c0a54cab2c366816d11d712bf51efc5 (diff) | |
Even more passes being LLVMContext'd.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/Reg2Mem.cpp')
| -rw-r--r-- | lib/Transforms/Scalar/Reg2Mem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/Reg2Mem.cpp b/lib/Transforms/Scalar/Reg2Mem.cpp index 46b2952b4c..ac95d25b7f 100644 --- a/lib/Transforms/Scalar/Reg2Mem.cpp +++ b/lib/Transforms/Scalar/Reg2Mem.cpp @@ -21,6 +21,7 @@ #include "llvm/Transforms/Utils/Local.h" #include "llvm/Pass.h" #include "llvm/Function.h" +#include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/BasicBlock.h" #include "llvm/Instructions.h" @@ -68,7 +69,7 @@ namespace { CastInst *AllocaInsertionPoint = CastInst::Create(Instruction::BitCast, - Constant::getNullValue(Type::Int32Ty), Type::Int32Ty, + Context->getNullValue(Type::Int32Ty), Type::Int32Ty, "reg2mem alloca point", I); // Find the escaped instructions. But don't create stack slots for |
