mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-15 16:38:41 +00:00
Fix bugs in the last change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f98a084908
commit
dd7036d19a
@ -68,7 +68,7 @@ bool InlineFunction(CallSite CS) {
|
|||||||
for (BasicBlock::iterator I = InvokeDest->begin();
|
for (BasicBlock::iterator I = InvokeDest->begin();
|
||||||
PHINode *PN = dyn_cast<PHINode>(I); ++I) {
|
PHINode *PN = dyn_cast<PHINode>(I); ++I) {
|
||||||
// Save the value to use for this edge...
|
// Save the value to use for this edge...
|
||||||
InvokeDestPHIValues.push_back(PN->getIncomingValueForBlock(OrigBB));
|
InvokeDestPHIValues.push_back(PN->getIncomingValueForBlock(AfterCallBB));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove (unlink) the InvokeInst from the function...
|
// Remove (unlink) the InvokeInst from the function...
|
||||||
@ -252,7 +252,7 @@ bool InlineFunction(CallSite CS) {
|
|||||||
// PHI node) now.
|
// PHI node) now.
|
||||||
for (BasicBlock::iterator I = InvokeDest->begin();
|
for (BasicBlock::iterator I = InvokeDest->begin();
|
||||||
PHINode *PN = dyn_cast<PHINode>(I); ++I)
|
PHINode *PN = dyn_cast<PHINode>(I); ++I)
|
||||||
PN->removeIncomingValue(OrigBB);
|
PN->removeIncomingValue(AfterCallBB);
|
||||||
}
|
}
|
||||||
// Now that the function is correct, make it a little bit nicer. In
|
// Now that the function is correct, make it a little bit nicer. In
|
||||||
// particular, move the basic blocks inserted from the end of the function
|
// particular, move the basic blocks inserted from the end of the function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user