aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/regexec.c
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2010-04-05 18:44:01 +0000
committerTanya Lattner <tonic@nondot.org>2010-04-05 18:44:01 +0000
commita485235170d6839696496c9541c29b898d617a43 (patch)
tree75763c3164ccb855d90ce3004bf3ad9f3ca09e79 /lib/Support/regexec.c
parent3be1985a1278cde6bb3d05728bae92c7224f02cb (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.c4
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&REG_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));
}