mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Inline check that's used only once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -215,10 +215,9 @@ bool StackProtector::InsertStackProtectors() {
|
||||
// unreachable
|
||||
|
||||
// Split the basic block before the return instruction.
|
||||
bool BBIsReachable = (DT && DT->isReachableFromEntry(BB));
|
||||
BasicBlock *NewBB = BB->splitBasicBlock(RI, "SP_return");
|
||||
|
||||
if (BBIsReachable) {
|
||||
if (DT && DT->isReachableFromEntry(BB)) {
|
||||
DT->addNewBlock(NewBB, BB);
|
||||
FailBBDom = FailBBDom ? DT->findNearestCommonDominator(FailBBDom, BB) :BB;
|
||||
}
|
||||
|
Reference in New Issue
Block a user