[stackprotector] Small cleanup.

llvm-svn: 188772
This commit is contained in:
Michael Gottesman 2013-08-20 08:56:28 +00:00
parent 76c44be14a
commit dc985ef0af
1 changed files with 2 additions and 1 deletions

View File

@ -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;