Skip to content

Commit 02fbb6a

Browse files
[Support] Remove an unnecessary cast (NFC) (#152442)
pattern is already of const char *.
1 parent 4be22da commit 02fbb6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/regcomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ llvm_regcomp(llvm_regex_t *preg, const char *pattern, int cflags) {
305305
return (REG_INVARG);
306306
len = preg->re_endp - pattern;
307307
} else {
308-
len = strlen((const char *)pattern);
308+
len = strlen(pattern);
309309
}
310310

311311
/* do the mallocs early so failure handling is easy */

0 commit comments

Comments
 (0)