From b858c3953d9ec5f0fc13dcabb535f23e68e9c239 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 6 Aug 2025 07:38:37 -0700 Subject: [PATCH] [Support] Remove an unnecessary cast (NFC) pattern is already of const char *. --- llvm/lib/Support/regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/regcomp.c b/llvm/lib/Support/regcomp.c index 4ed59823f6f44..f5c47781f3d82 100644 --- a/llvm/lib/Support/regcomp.c +++ b/llvm/lib/Support/regcomp.c @@ -305,7 +305,7 @@ llvm_regcomp(llvm_regex_t *preg, const char *pattern, int cflags) { return (REG_INVARG); len = preg->re_endp - pattern; } else { - len = strlen((const char *)pattern); + len = strlen(pattern); } /* do the mallocs early so failure handling is easy */