aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-24 06:24:46 +0000
committerChris Lattner <sabre@nondot.org>2004-05-24 06:24:46 +0000
commitb11a99bd39ec12733527bde330302b435b8d9f1a (patch)
treedddebaa016832c9a24667047b0493223aae6ea10
parent792699c46ef9bfc47dd459bbfa7e71bcb2cee29a (diff)
downloadexternal_llvm-b11a99bd39ec12733527bde330302b435b8d9f1a.zip
external_llvm-b11a99bd39ec12733527bde330302b435b8d9f1a.tar.gz
external_llvm-b11a99bd39ec12733527bde330302b435b8d9f1a.tar.bz2
Fix a bug in my previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13717 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/Inliner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp
index 1186c3e..0abc4f7 100644
--- a/lib/Transforms/IPO/Inliner.cpp
+++ b/lib/Transforms/IPO/Inliner.cpp
@@ -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;
}