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);
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);
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);