diff options
Diffstat (limited to 'contrib/llvm/lib/Transforms/Utils/CtorUtils.cpp')
| -rw-r--r-- | contrib/llvm/lib/Transforms/Utils/CtorUtils.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/lib/Transforms/Utils/CtorUtils.cpp b/contrib/llvm/lib/Transforms/Utils/CtorUtils.cpp index dc95089cd2ca..b56ff684e8a8 100644 --- a/contrib/llvm/lib/Transforms/Utils/CtorUtils.cpp +++ b/contrib/llvm/lib/Transforms/Utils/CtorUtils.cpp @@ -50,7 +50,7 @@ void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) {    GlobalVariable *NGV =        new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(),                           CA, "", GCL->getThreadLocalMode()); -  GCL->getParent()->getGlobalList().insert(GCL, NGV); +  GCL->getParent()->getGlobalList().insert(GCL->getIterator(), NGV);    NGV->takeName(GCL);    // Nuke the old list, replacing any uses with the new one.  | 
