[PATCH] D9973: Refactor: Simplify boolean conditional return statements in lib/llvm/ExecutionEngine/Orc
Richard via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 24 11:12:15 PDT 2015
LegalizeAdulthood updated this revision to Diff 38314.
LegalizeAdulthood added a comment.
Update to latest.
I do not have commit access; someone will need to commit this for me.
http://reviews.llvm.org/D9973
Files:
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
Index: lib/ExecutionEngine/Orc/IndirectionUtils.cpp
===================================================================
--- lib/ExecutionEngine/Orc/IndirectionUtils.cpp
+++ 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.38314.patch
Type: text/x-patch
Size: 520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151024/fb66e59e/attachment.bin>
More information about the llvm-commits
mailing list