forked from OSchip/llvm-project
parent
76c44be14a
commit
dc985ef0af
|
@ -395,7 +395,8 @@ bool StackProtector::InsertStackProtectors() {
|
||||||
for (Function::iterator I = F->begin(), E = F->end(); I != E; ) {
|
for (Function::iterator I = F->begin(), E = F->end(); I != E; ) {
|
||||||
BasicBlock *BB = I++;
|
BasicBlock *BB = I++;
|
||||||
ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator());
|
ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator());
|
||||||
if (!RI) continue;
|
if (!RI)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!HasPrologue) {
|
if (!HasPrologue) {
|
||||||
HasPrologue = true;
|
HasPrologue = true;
|
||||||
|
|
Loading…
Reference in New Issue