diff options
-rw-r--r-- | lib/CodeGen/StackProtector.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/StackProtector.cpp b/lib/CodeGen/StackProtector.cpp index b3ee152..f0a44ab 100644 --- a/lib/CodeGen/StackProtector.cpp +++ b/lib/CodeGen/StackProtector.cpp @@ -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; } |