[PATCH] D133518: [HLSL] Call global destructors from entries

Chris Bieneman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 9 13:07:28 PDT 2022


beanz added a comment.

In D133518#3781101 <https://reviews.llvm.org/D133518#3781101>, @aaron.ballman wrote:

> This generally LGTM, but to double-check: the behavior if the user does call `atexit()` or or `at_quick_exit()` is that we simply don't call those handlers? As opposed to something worse like we dispatch to the handler and then crash on exit or something like that?

There should be no way to successfully compile and link a shader calling `atexit()` or `at_quick_exit()`. Neither of those functions are provided by the runtime so it should turn into a compile or linking error somewhere in the build process (either missing declaration or missing symbol resolution).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133518/new/

https://reviews.llvm.org/D133518



More information about the cfe-commits mailing list