This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix incorrect type when casting from uintptr
ClosedPublic

Authored by nikic on Dec 22 2021, 8:27 AM.

Details

Summary

MakeNaturalAlignAddrLValue() expects the pointee type, but the pointer type was passed. As a result, the natural alignment of the pointer (usually 8) was always used in place of the natural alignment of the value type.

Diff Detail

Unit TestsFailed

Event Timeline

nikic created this revision.Dec 22 2021, 8:27 AM
nikic requested review of this revision.Dec 22 2021, 8:27 AM
This revision is now accepted and ready to land.Dec 22 2021, 8:52 AM
This revision was landed with ongoing or failed builds.Dec 22 2021, 11:59 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2021, 11:59 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript