mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user