summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/regexec.c
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-04-05 17:50:20 +0000
committerOwen Anderson <resistor@mac.com>2010-04-05 17:50:20 +0000
commitf93bdd1024af379cbd30bd083a62e68d97867bd4 (patch)
treea108b9ad8e8c43b67d23d2fe18133f05eb05fee0 /llvm/lib/Support/regexec.c
parent6a0e89aefb298e2d692d4a95924bbaebe6219f79 (diff)
downloadbcm5719-llvm-f93bdd1024af379cbd30bd083a62e68d97867bd4.tar.gz
bcm5719-llvm-f93bdd1024af379cbd30bd083a62e68d97867bd4.zip
Push const through the regex engine. Fixes some of the warnings in PR6616.
llvm-svn: 100438
Diffstat (limited to 'llvm/lib/Support/regexec.c')
-rw-r--r--llvm/lib/Support/regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/regexec.c b/llvm/lib/Support/regexec.c
index 7d70f6e16c7..41fb2ea46c9 100644
--- a/llvm/lib/Support/regexec.c
+++ b/llvm/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));
}
OpenPOWER on IntegriCloud