[lldb] Use the new Regex::isValid() with no parameter

Differential Revision: https://reviews.llvm.org/D66463

llvm-svn: 369398
This commit is contained in:
Jan Kratochvil 2019-08-20 16:08:27 +00:00
parent 95b5f42de8
commit 1c56d3df19
1 changed files with 1 additions and 4 deletions

View 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; }