Skip to content
Unverified Commit e01c7d54 authored by Sam Clegg's avatar Sam Clegg Committed by GitHub
Browse files

[LowerGlobalDtors] Skip __cxa_atexit call completely when arg0 is unused (#68758)

In emscripten we have a build mode (the default actually) where the
runtime never exits and therefore `__cxa_atexit` is a dummy/stub
function that does nothing. In this case we would like to be able
completely DCE any otherwise-unused global dtor functions.

Fixes: https://github.com/emscripten-core/emscripten/issues/19993
parent 4554eac5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment