Apply a patch from Nathan Keynes, which speeds up llvm-link on
authorChris Lattner <sabre@nondot.org>
Mon, 16 Jun 2008 19:48:08 +0000 (19:48 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Jun 2008 19:48:08 +0000 (19:48 +0000)
the testcases in PR1860 from taking more than 1 hour (when I killed it)
to taking 1s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52347 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index 14fe9959db80c9db5a1f48ed5b84b47d31a4fe9c..64c00327f29041ffddd484bbefe605850e7f7993 100644 (file)
@@ -156,7 +156,6 @@ static bool RecursiveResolveTypesI(const PATypeHolder &DestTy,
       RecursiveResolveTypesI(cast<PointerType>(DestTy.get())->getElementType(),
                              cast<PointerType>(SrcTy.get())->getElementType(),
                              Pointers);
-    Pointers.pop_back();
     return Result;
   }
   }