aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-23 18:37:01 +0000
committerChris Lattner <sabre@nondot.org>2010-04-23 18:37:01 +0000
commit076863225ce070345ff7048f48b3550e00598a10 (patch)
tree3dcc9895af7b024b61389b147692a32176c3f725 /lib/Transforms/Utils/InlineFunction.cpp
parenta56c1c5d4c87896be2a04a855235cfa423252e32 (diff)
downloadexternal_llvm-076863225ce070345ff7048f48b3550e00598a10.zip
external_llvm-076863225ce070345ff7048f48b3550e00598a10.tar.gz
external_llvm-076863225ce070345ff7048f48b3550e00598a10.tar.bz2
switch InlineInfo.DevirtualizedCalls's list to be of WeakVH.
This fixes a bug where calls inlined into an invoke would get changed into an invoke but the array would keep pointing to the (now dead) call. The improved inliner behavior is still disabled for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index a913d15..481cacf 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/lib/Transforms/Utils/InlineFunction.cpp
@@ -72,7 +72,7 @@ static void HandleCallsInBlockInlinedThroughInvoke(BasicBlock *BB,
II->setAttributes(CI->getAttributes());
// Make sure that anything using the call now uses the invoke! This also
- // updates the CallGraph if present.
+ // updates the CallGraph if present, because it uses a WeakVH.
CI->replaceAllUsesWith(II);
// Delete the unconditional branch inserted by splitBasicBlock