projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert from Windows to Unix paths in sys::path::native.
[oota-llvm.git]
/
lib
/
Support
/
regengine.inc
diff --git
a/lib/Support/regengine.inc
b/lib/Support/regengine.inc
index bf55543dab8acd275eacf042215a2af749c030bc..62d8c267f22f7843c4257a632dab3f7cdc7c1ba4 100644
(file)
--- a/
lib/Support/regengine.inc
+++ b/
lib/Support/regengine.inc
@@
-185,7
+185,7
@@
matcher(struct re_guts *g, const char *string, size_t nmatch,
endp = fast(m, start, stop, gf, gl);
if (endp == NULL) { /* a miss */
free(m->pmatch);
endp = fast(m, start, stop, gf, gl);
if (endp == NULL) { /* a miss */
free(m->pmatch);
- free(m->lastpos);
+ free(
(void*)
m->lastpos);
STATETEARDOWN(m);
return(REG_NOMATCH);
}
STATETEARDOWN(m);
return(REG_NOMATCH);
}
@@
-205,7
+205,7
@@
matcher(struct re_guts *g, const char *string, size_t nmatch,
if (nmatch == 1 && !g->backrefs)
break; /* no further info needed */
if (nmatch == 1 && !g->backrefs)
break; /* no further info needed */
- /* oh my,
he wants
the subexpressions... */
+ /* oh my,
they want
the subexpressions... */
if (m->pmatch == NULL)
m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) *
sizeof(llvm_regmatch_t));
if (m->pmatch == NULL)
m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) *
sizeof(llvm_regmatch_t));