From 84921b9860adbc7cd40df8beb9caf542ddaaa51b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 24 Oct 2015 23:11:13 +0000 Subject: Refactor: Simplify boolean conditional return statements in lib/CodeGen. Patch by Richard. llvm-svn: 251213 --- llvm/lib/CodeGen/StackProtector.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/StackProtector.cpp') diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index af759cff79c..ee1a2045190 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -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 -- cgit v1.2.3