[lldb] Use the new Regex::isValid() with no parameter
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 20 Aug 2019 16:08:27 +0000 (16:08 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 20 Aug 2019 16:08:27 +0000 (16:08 +0000)
Differential Revision: https://reviews.llvm.org/D66463

llvm-svn: 369398

lldb/source/Utility/RegularExpression.cpp

index 432b45e..fd9d963 100644 (file)
@@ -28,10 +28,7 @@ bool RegularExpression::Execute(
   return m_regex.match(str, matches);
 }
 
-bool RegularExpression::IsValid() const {
-  std::string discarded;
-  return m_regex.isValid(discarded);
-}
+bool RegularExpression::IsValid() const { return m_regex.isValid(); }
 
 llvm::StringRef RegularExpression::GetText() const { return m_regex_text; }