aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ASTMerge.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2025-04-25 12:47:38 +0200
committerGitHub <noreply@github.com>2025-04-25 11:47:38 +0100
commit2d00c73003a6c5e9fd468afcf271b505d4f80f27 (patch)
tree42884bd6c1649def13e2e36072e5fd156b5af8b3 /clang/lib/Frontend/ASTMerge.cpp
parentb4e259291326176602c55db2dbf8697ff3bca6e9 (diff)
downloadllvm-2d00c73003a6c5e9fd468afcf271b505d4f80f27.zip
llvm-2d00c73003a6c5e9fd468afcf271b505d4f80f27.tar.gz
llvm-2d00c73003a6c5e9fd468afcf271b505d4f80f27.tar.bz2
[Clang][CodeGen] Emit fake uses before musttail calls (#136867)
Fixes the issue reported following the merge of #118026. When a valid `musttail` call is made, the function it is made from must return immediately after the call; if there are any cleanups left in the function, then an error is triggered. This is not necessary for fake uses however - it is perfectly valid to simply emit the fake use "cleanup" code before the tail call, and indeed LLVM will automatically move any fake uses following a tail call to come before the tail call. Therefore, this patch specifically choose to handle fake use cleanups when a musttail call is present by simply emitting them immediately before the call.
Diffstat (limited to 'clang/lib/Frontend/ASTMerge.cpp')
0 files changed, 0 insertions, 0 deletions