aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/DFAPacketizer.cpp
diff options
context:
space:
mode:
authorTomohiro Kashiwada <kikairoya@gmail.com>2025-10-13 18:09:42 +0900
committerGitHub <noreply@github.com>2025-10-13 11:09:42 +0200
commitea251536d55f493d9eb4bb18fb027709c4d39509 (patch)
tree2756b4b0e4dbd68463fff65d6edcbfa423b06ce7 /llvm/lib/CodeGen/DFAPacketizer.cpp
parentcdc8e8d092619b318d69c61a941246a31c8cd26f (diff)
downloadllvm-ea251536d55f493d9eb4bb18fb027709c4d39509.zip
llvm-ea251536d55f493d9eb4bb18fb027709c4d39509.tar.gz
llvm-ea251536d55f493d9eb4bb18fb027709c4d39509.tar.bz2
[LLVM][Support] Allow `char[N]` parameters in `llvm::format` (#159541)
Cygwin builds are currently broken after #157312, which effectively reverted #138117. The root cause is that Cygwin defines `DL_info::dli_fname` as `char[N]`, which is not a valid parameter type for `llvm::format`. This patch allows `llvm::format` to accept `char[N]` by decaying it to `const char *`. As a result, string literals are also accepted without an explicit cast. Other array types remain rejected: - Wide/unicode character arrays (e.g., `wchar_t[N]`) are not supported, as LLVM does not use them and they are less compatible with platform's `printf` implementations. - Non-character arrays (e.g., `int[N]`) are also rejected, since passing such arrays to `printf` is meaningless.
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions