Skip to content

Commit

Permalink
Refactor: Simplify boolean conditional return statements in lib/llvm/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
alexfh committed Nov 5, 2015
1 parent 100773a commit f3e49f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ExecutionEngine/Orc/IndirectionUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f3e49f5

Please sign in to comment.