diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-05-26 21:33:52 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-05-26 21:33:52 +0000 |
commit | 6c80c381601b17207b6b8f898cfe273a37584d52 (patch) | |
tree | cf741dc793ea30768d89452c620c626640b35c04 /lib/VMCore/Globals.cpp | |
parent | aadc6b68c7d5a30f1aa75196eeae577c178c2c07 (diff) |
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.cpp | 6 |
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); |