Skip to content
Unverified Commit c1d5865a authored by Joseph Huber's avatar Joseph Huber Committed by GitHub
Browse files

[AMDGPU] Call the `FINI_ARRAY` destructors in the correct order (#71815)

Summary:
The AMDGPU backend uses the linker-provided INIT_ARRAY and FINI_ARRAY
sections to call all the global constructors in a single kernel.
Previously this mistakenly used the same iteration logic for both
arrays. The destructors stored in FINI_ARRAY are stored in the same
order as
the ones in the INIT_ARRAY section so we need to traverse it in reverse
order.
parent af8ebfdc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment