[libc-commits] [libc] [libc][NFC] Clean up regex tables, headers, and CMake deps (PR #243759)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Wed Nov 18 01:06:28 PST 2026
================
@@ -23,9 +23,10 @@ namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(void, regfree, (regex_t * preg)) {
LIBC_CRASH_ON_NULLPTR(preg);
- delete static_cast<regex::RegexInternal *>(preg->__internal);
+ auto *internal = static_cast<regex::RegexInternal *>(preg->__internal);
----------------
labath wrote:
This probably deserves a comment, as it's the kind of thing that someone might want to "optimize".
https://github.com/llvm/llvm-project/pull/243759
More information about the libc-commits
mailing list