diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-08 23:50:31 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-08 23:50:31 +0000 |
commit | c341f1c62d1b46b64fb70890fffed87a3136cc2d (patch) | |
tree | 521246e436d066afa6ee4cc628a9be3f5a23ae5b /lib/VMCore/Globals.cpp | |
parent | ab711cc593e0b24cdaf6ad1f2b3430bb64762bb1 (diff) |
LLVMContext-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Globals.cpp')
-rw-r--r-- | lib/VMCore/Globals.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Globals.cpp b/lib/VMCore/Globals.cpp index c3fe5683ec..adc7a82e6d 100644 --- a/lib/VMCore/Globals.cpp +++ b/lib/VMCore/Globals.cpp @@ -118,7 +118,8 @@ GlobalVariable::GlobalVariable(Module &M, const Type *Ty, bool constant, const std::string &Name, GlobalVariable *Before, bool ThreadLocal, unsigned AddressSpace) - : GlobalValue(PointerType::get(Ty, AddressSpace), Value::GlobalVariableVal, + : GlobalValue(M.getContext().getPointerType(Ty, AddressSpace), + Value::GlobalVariableVal, OperandTraits<GlobalVariable>::op_begin(this), InitVal != 0, Link, Name), isConstantGlobal(constant), isThreadLocalSymbol(ThreadLocal) { |