summaryrefslogtreecommitdiff
path: root/lib/VMCore/Globals.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-05-26 21:33:52 +0000
committerGabor Greif <ggreif@gmail.com>2008-05-26 21:33:52 +0000
commit6c80c381601b17207b6b8f898cfe273a37584d52 (patch)
treecf741dc793ea30768d89452c620c626640b35c04 /lib/VMCore/Globals.cpp
parentaadc6b68c7d5a30f1aa75196eeae577c178c2c07 (diff)
downloadllvm-6c80c381601b17207b6b8f898cfe273a37584d52.tar.gz
llvm-6c80c381601b17207b6b8f898cfe273a37584d52.tar.bz2
llvm-6c80c381601b17207b6b8f898cfe273a37584d52.tar.xz
eliminate calls to deprecated Use::init() interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Globals.cpp')
-rw-r--r--lib/VMCore/Globals.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/Globals.cpp b/lib/VMCore/Globals.cpp
index 229b0127a4..7340f1532f 100644
--- a/lib/VMCore/Globals.cpp
+++ b/lib/VMCore/Globals.cpp
@@ -104,7 +104,7 @@ GlobalVariable::GlobalVariable(const Type *Ty, bool constant, LinkageTypes Link,
if (InitVal) {
assert(InitVal->getType() == Ty &&
"Initializer should be the same type as the GlobalVariable!");
- Op<0>().init(InitVal, this);
+ Op<0>() = InitVal;
}
LeakDetector::addGarbageObject(this);
@@ -124,7 +124,7 @@ GlobalVariable::GlobalVariable(const Type *Ty, bool constant, LinkageTypes Link,
if (InitVal) {
assert(InitVal->getType() == Ty &&
"Initializer should be the same type as the GlobalVariable!");
- Op<0>().init(InitVal, this);
+ Op<0>() = InitVal;
}
LeakDetector::addGarbageObject(this);
@@ -191,7 +191,7 @@ GlobalAlias::GlobalAlias(const Type *Ty, LinkageTypes Link,
if (aliasee)
assert(aliasee->getType() == Ty && "Alias and aliasee types should match!");
- Op<0>().init(aliasee, this);
+ Op<0>() = aliasee;
if (ParentModule)
ParentModule->getAliasList().push_back(this);