[PATCH] D10016: Refactor: Simplify boolean conditional return statements in lib/Frontend

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 28 07:18:42 PST 2015


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

Changed prior to commit:
  http://reviews.llvm.org/D10016?vs=38309&id=43687#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D10016

Files:
  cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp

Index: cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
===================================================================
--- cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
+++ cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
@@ -186,9 +186,7 @@
       Regex(RegexStr) { }
 
   bool isValid(std::string &Error) override {
-    if (Regex.isValid(Error))
-      return true;
-    return false;
+    return Regex.isValid(Error);
   }
 
   bool match(StringRef S) override {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10016.43687.patch
Type: text/x-patch
Size: 484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151228/834da656/attachment.bin>


More information about the cfe-commits mailing list