diff --git a/lib/IR/Globals.cpp b/lib/IR/Globals.cpp index f97602015f1..9303343a908 100644 --- a/lib/IR/Globals.cpp +++ b/lib/IR/Globals.cpp @@ -104,7 +104,7 @@ bool GlobalValue::isDeclaration() const { assert(isa(this)); return false; } - + //===----------------------------------------------------------------------===// // GlobalVariable Implementation //===----------------------------------------------------------------------===// @@ -146,9 +146,9 @@ GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, "Initializer should be the same type as the GlobalVariable!"); Op<0>() = InitVal; } - + LeakDetector::addGarbageObject(this); - + if (Before) Before->getParent()->getGlobalList().insert(Before, this); else @@ -253,7 +253,7 @@ void GlobalAlias::eraseFromParent() { void GlobalAlias::setAliasee(Constant *Aliasee) { assert((!Aliasee || Aliasee->getType() == getType()) && "Alias and aliasee types should match!"); - + setOperand(0, Aliasee); }