Refactor: Simplify boolean conditional return statements in lib/CodeGen.
[oota-llvm.git] / lib / CodeGen / LiveDebugVariables.cpp
index a729208c039aeccb4ae3c987e8598a09dd6057a7..6559d8df1a2d7254e248645cfc9679ec89f884ff 100644 (file)
@@ -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