]> granicus.if.org Git - llvm/commitdiff
Add const to a const method. NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 18 Apr 2017 01:04:05 +0000 (01:04 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 18 Apr 2017 01:04:05 +0000 (01:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300520 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Regex.h
lib/Support/Regex.cpp

index 83db80359ee21a3b58df863b2a65069be936c6a2..f498835bcb582d238866b14964fac5782f9dbdad 100644 (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
index 68ba79e11766c35bf802bc486ec4cc364ee2e3c9..b1087fd8853cbf394547920847b2e5d929b3b7e6 100644 (file)
@@ -48,7 +48,7 @@ Regex::~Regex() {
   }
 }
 
-bool Regex::isValid(std::string &Error) {
+bool Regex::isValid(std::string &Error) const {
   if (!error)
     return true;