mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
The split bb is really the exit of the old function
llvm-svn: 18799
This commit is contained in:
parent
c14cde5487
commit
8378361f0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user