summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-11 16:59:54 +0000
committerChris Lattner <sabre@nondot.org>2004-12-11 16:59:54 +0000
commit284d1b88273eb1967c8faef407f1167791c760e0 (patch)
tree829325c41021ce74b75d0385eabb8ac28d9bddf7 /lib/Transforms/Utils/InlineFunction.cpp
parent3680e848771320b6bf8a6410d3eb223aba1d6c51 (diff)
downloadllvm-284d1b88273eb1967c8faef407f1167791c760e0.tar.gz
llvm-284d1b88273eb1967c8faef407f1167791c760e0.tar.bz2
llvm-284d1b88273eb1967c8faef407f1167791c760e0.tar.xz
The split bb is really the exit of the old function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index 77cf111b07..1384022be7 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/lib/Transforms/Utils/InlineFunction.cpp
@@ -237,14 +237,14 @@ bool llvm::InlineFunction(CallSite CS) {
// updated due to new incoming edges, and make the invoke case more
// symmetric to the call case.
AfterCallBB = OrigBB->splitBasicBlock(NewBr,
- CalledFunc->getName()+".entry");
+ CalledFunc->getName()+".exit");
} else { // It's a call
// If this is a call instruction, we need to split the basic block that
// the call lives in.
//
AfterCallBB = OrigBB->splitBasicBlock(TheCall,
- CalledFunc->getName()+".entry");
+ CalledFunc->getName()+".exit");
}
// Change the branch that used to go to AfterCallBB to branch to the first