aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ProgramStack.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2025-04-15 11:19:19 -0400
committerGitHub <noreply@github.com>2025-04-15 11:19:19 -0400
commitd0e4af8a88dc7a0377677000d0c92104ff215347 (patch)
tree7c839712f8ad5bcdf53d00af7f183034151e5b36 /llvm/lib/Support/ProgramStack.cpp
parent637f352c3edc207f6f79c16f4760d218904fb9f7 (diff)
downloadllvm-d0e4af8a88dc7a0377677000d0c92104ff215347.zip
llvm-d0e4af8a88dc7a0377677000d0c92104ff215347.tar.gz
llvm-d0e4af8a88dc7a0377677000d0c92104ff215347.tar.bz2
Silence -Wcast-function-type warnings on idiomatic Windows code (#135660)
On Windows, GetProcAddress() is the API used to dynamically load function pointers (similar to dlsym on Linux). This API returns a function pointer (a typedef named FARPROC), which means that casting from the call to the eventual correct type is technically a function type mismatch on the cast. However, because this is idiomatic code on Windows, we should accept it unless -Wcast-function-type-strict is passed. This was brought up in post-commit review feedback on https://github.com/llvm/llvm-project/pull/86131
Diffstat (limited to 'llvm/lib/Support/ProgramStack.cpp')
0 files changed, 0 insertions, 0 deletions