Files
clang-p2996/llvm/lib/Support/regcomp.c
Xiang Li bc8f4a1b0a [NFC] [Support] Fix warning when build with clang-cl on Windows. (#65387)
Add const qualifier to avoid warning "_cast from 'const char *' to 'char*' drops const qualifier [-Werror,-Wcast-qual]_"

This will allow enable LLVM_ENABLE_WERROR when build with clang-cl on Windows.
This is imported from https://github.com/openbsd/src/commit/b81763002452802e4f7304ea60f121253bd94

Also removed the gcc change for the cast-qual warning which is not needed with const qualifier added.
2023-09-12 16:55:34 -04:00

39 KiB