Fix a bug in my previous checkin
authorChris Lattner <sabre@nondot.org>
Mon, 24 May 2004 06:24:46 +0000 (06:24 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 May 2004 06:24:46 +0000 (06:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13717 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Inliner.cpp

index 1186c3e617fff103621c03f152a3e1a2e8f9ae79..0abc4f7179feeb9b3279e33650fef5ceded4cd5f 100644 (file)
@@ -125,6 +125,7 @@ bool Inliner::runOnSCC(const std::vector<CallGraphNode*> &SCC) {
         if (Callee->isExternal() ||
             CallSites[CSi].getInstruction()->getParent()->getParent() ==Callee){
           std::swap(CallSites[CSi], CallSites.back());
+          CallSites.pop_back();
           --CSi;
           continue;
         }