aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-08-12 17:57:16 -0500
committerGitHub <noreply@github.com>2024-08-12 17:57:16 -0500
commit0889809c706fd926b786bc2f8852646a17d7e21c (patch)
tree86f352dd666c33970280066ea8795ab3e56270a0 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parentb1edac0496f47374c9780f3f83c6773eed73a66e (diff)
downloadllvm-0889809c706fd926b786bc2f8852646a17d7e21c.zip
llvm-0889809c706fd926b786bc2f8852646a17d7e21c.tar.gz
llvm-0889809c706fd926b786bc2f8852646a17d7e21c.tar.bz2
[libc] Fix warning on 'extern "C" int main' in test suite (#102973)
Summary: According to the C++ standard, The main function shall not be declared with a linkage-specification. after some changes in https://github.com/llvm/llvm-project/pull/101853 this started emitting warnings when building / testing the C library. This source file is shared with the overlay tests as well as the full build tests. The full build tests are compiled with `-ffreestanding`, as are all the startup / integration files. The standard says freestanding environment are all implementation defined, so this is valid in those cases. This patch simply prevents adding the linkage when we are compiling unit tests, which are hosted. This is a continuation on https://github.com/llvm/llvm-project/pull/102825.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions