Refactor: Simplify boolean conditional return statements in lib/CodeGen.

Patch by Richard.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-10-24 23:11:13 +00:00
parent 878eaf48c1
commit 2fe94b6b08
9 changed files with 24 additions and 60 deletions
+1 -4
View File
@@ -465,10 +465,7 @@ bool StackProtector::InsertStackProtectors() {
// Return if we didn't modify any basic blocks. i.e., there are no return
// statements in the function.
if (!HasPrologue)
return false;
return true;
return HasPrologue;
}
/// CreateFailBB - Create a basic block to jump to when the stack protector