summaryrefslogtreecommitdiff
path: root/lib/Support/regexec.c
diff options
context:
space:
mode:
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));
}