diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-24 23:11:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-24 23:11:13 +0000 |
commit | 84921b9860adbc7cd40df8beb9caf542ddaaa51b (patch) | |
tree | 5baaa37b6d913d64895cd573ea2e5e36372f5c51 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | f82ed2a28cefc1933052daa7cf81ca80bc405ed2 (diff) | |
download | bcm5719-llvm-84921b9860adbc7cd40df8beb9caf542ddaaa51b.tar.gz bcm5719-llvm-84921b9860adbc7cd40df8beb9caf542ddaaa51b.zip |
Refactor: Simplify boolean conditional return statements in lib/CodeGen.
Patch by Richard.
llvm-svn: 251213
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index a729208c039..6559d8df1a2 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -91,9 +91,7 @@ public: bool dominates(MachineBasicBlock *MBB) { if (LBlocks.empty()) LS.getMachineBasicBlocks(DL, LBlocks); - if (LBlocks.count(MBB) != 0 || LS.dominates(DL, MBB)) - return true; - return false; + return LBlocks.count(MBB) != 0 || LS.dominates(DL, MBB); } }; } // end anonymous namespace |