1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Add const to a const method. NFC

llvm-svn: 300520
This commit is contained in:
George Burgess IV 2017-04-18 01:04:05 +00:00
parent 8ba440ea9a
commit fec4b3628a
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ namespace llvm {
/// isValid - returns the error encountered during regex compilation, or
/// matching, if any.
bool isValid(std::string &Error);
bool isValid(std::string &Error) const;
/// getNumMatches - In a valid regex, return the number of parenthesized
/// matches it contains. The number filled in by match will include this

View File

@ -48,7 +48,7 @@ Regex::~Regex() {
}
}
bool Regex::isValid(std::string &Error) {
bool Regex::isValid(std::string &Error) const {
if (!error)
return true;