diff options
author | Tanya Lattner <tonic@nondot.org> | 2010-04-05 18:44:01 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2010-04-05 18:44:01 +0000 |
commit | a485235170d6839696496c9541c29b898d617a43 (patch) | |
tree | 75763c3164ccb855d90ce3004bf3ad9f3ca09e79 /lib/Support/regexec.c | |
parent | 3be1985a1278cde6bb3d05728bae92c7224f02cb (diff) |
Merge 100438 from mainline.
Push const through the regex engine. Fixes some of the warnings in PR6616.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_27@100450 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)); } |