From: Alexander Kornienko Date: Thu, 5 Nov 2015 21:18:09 +0000 (+0000) Subject: Refactor: Simplify boolean conditional return statements in lib/llvm/ExecutionEngine/Orc X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3e49f53a8544c8fc9293577a5955e9e72e6bc28;p=oota-llvm.git Refactor: Simplify boolean conditional return statements in lib/llvm/ExecutionEngine/Orc Patch by Richard Thomson! Differential revision: http://reviews.llvm.org/D9973 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252212 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/Orc/IndirectionUtils.cpp b/lib/ExecutionEngine/Orc/IndirectionUtils.cpp index 5b1eccd82a4..30dbe038377 100644 --- a/lib/ExecutionEngine/Orc/IndirectionUtils.cpp +++ b/lib/ExecutionEngine/Orc/IndirectionUtils.cpp @@ -64,9 +64,7 @@ class GlobalRenamer { public: static bool needsRenaming(const Value &New) { - if (!New.hasName() || New.getName().startswith("\01L")) - return true; - return false; + return !New.hasName() || New.getName().startswith("\01L"); } const std::string& getRename(const Value &Orig) {