diff options
author | Owen Anderson <resistor@mac.com> | 2010-04-05 17:50:20 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-04-05 17:50:20 +0000 |
commit | d2520dcc701da54862e3e73b16d58c25474417be (patch) | |
tree | a40a7ee9cc45ab81aa47583a7a86cdf727ed5bb2 /lib/Support/regexec.c | |
parent | 0752cda4de245978e14d806831abba4506272cd0 (diff) |
Push const through the regex engine. Fixes some of the warnings in PR6616.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/regexec.c')
-rw-r--r-- | lib/Support/regexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/regexec.c b/lib/Support/regexec.c index 7d70f6e16c..41fb2ea46c 100644 --- a/lib/Support/regexec.c +++ b/lib/Support/regexec.c @@ -155,7 +155,7 @@ llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, eflags = GOODFLAGS(eflags); if (g->nstates <= (long)(CHAR_BIT*sizeof(states1)) && !(eflags®_LARGE)) - return(smatcher(g, (char *)string, nmatch, pmatch, eflags)); + return(smatcher(g, string, nmatch, pmatch, eflags)); else - return(lmatcher(g, (char *)string, nmatch, pmatch, eflags)); + return(lmatcher(g, string, nmatch, pmatch, eflags)); } |