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 {
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 {
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits