diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-04-08 15:25:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-04-08 15:25:57 +0000 |
commit | 53dd088b5865963ac956a31b1dcdb68daab343df (patch) | |
tree | 306823cb6b97a9a8adcda8bfa4c2a9cbb3e1492e /llvm/lib/Support/regengine.inc | |
parent | a1eafb9afdc41f13ce53c31953065c2cd561ce77 (diff) | |
download | bcm5719-llvm-53dd088b5865963ac956a31b1dcdb68daab343df.tar.gz bcm5719-llvm-53dd088b5865963ac956a31b1dcdb68daab343df.zip |
Various MSVC warning fixes about truncated 64 bit shifts and const pointers passed to free.
llvm-svn: 100767
Diffstat (limited to 'llvm/lib/Support/regengine.inc')
-rw-r--r-- | llvm/lib/Support/regengine.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/regengine.inc b/llvm/lib/Support/regengine.inc index bf55543dab8..7e41f96f359 100644 --- a/llvm/lib/Support/regengine.inc +++ b/llvm/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); - free(m->lastpos); + free((void*)m->lastpos); STATETEARDOWN(m); return(REG_NOMATCH); } |