[PATCH] D9973: Refactor: Simplify boolean conditional return statements in lib/llvm/ExecutionEngine/Orc

Alexander Kornienko via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 13:20:42 PST 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL252212: Refactor: Simplify boolean conditional return statements in… (authored by alexfh).

Changed prior to commit:
  http://reviews.llvm.org/D9973?vs=38314&id=39405#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D9973

Files:
  llvm/trunk/lib/ExecutionEngine/Orc/IndirectionUtils.cpp

Index: llvm/trunk/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
===================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
+++ llvm/trunk/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
@@ -64,9 +64,7 @@
 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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9973.39405.patch
Type: text/x-patch
Size: 553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151105/6053b194/attachment.bin>


More information about the llvm-commits mailing list