This is an archive of the discontinued LLVM Phabricator instance.

clang/openmp: Fix alignment for ThreadID Address variables
ClosedPublic

Authored by tstellar on May 16 2023, 2:02 PM.

Details

Summary

There are places in the runtime, like __kmp_init_indirect_csptr, which
assume these pointers are aligned to sizeof(void*), so make sure we emit
them with the correct alignment.

Fixes #62668

Diff Detail

Event Timeline

tstellar created this revision.May 16 2023, 2:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 2:02 PM
tstellar requested review of this revision.May 16 2023, 2:02 PM
Herald added a project: Restricted Project. · View Herald Transcript
arsenm added a subscriber: arsenm.May 16 2023, 2:03 PM

Needs test

tstellar updated this revision to Diff 522853.May 16 2023, 5:26 PM

Add test case.

This revision is now accepted and ready to land.May 16 2023, 9:24 PM
This revision was landed with ongoing or failed builds.May 31 2023, 9:12 AM
This revision was automatically updated to reflect the committed changes.