projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
848b0c3
)
Inline check that's used only once.
author
Bill Wendling
<isanbard@gmail.com>
Tue, 29 Mar 2011 17:12:55 +0000
(17:12 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Tue, 29 Mar 2011 17:12:55 +0000
(17:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128465
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/StackProtector.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/StackProtector.cpp
b/lib/CodeGen/StackProtector.cpp
index b3ee152d28b8b3161a42ec94ed9d0931152bcbb2..f0a44abaf5cda1b4d4267752a46fc73f18a2a492 100644
(file)
--- 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;
}