This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP]Use the real pointer value as base, not indexed value.
ClosedPublic

Authored by ABataev on Nov 19 2020, 10:07 AM.

Details

Summary

After fix for PR48174 the base pointer for pointer-based
array-sections/array-subscripts will be emitted as &ptr[idx], but
actually it should be just ptr, i.e. the address stored in the ponter
to point correctly to the beginning of the array. Currently it may lead
to a crash in the runtime.

Diff Detail

Event Timeline

ABataev created this revision.Nov 19 2020, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 19 2020, 10:07 AM
ABataev requested review of this revision.Nov 19 2020, 10:07 AM
jdoerfert accepted this revision.Nov 19 2020, 11:17 AM
This revision is now accepted and ready to land.Nov 19 2020, 11:17 AM
This revision was landed with ongoing or failed builds.Nov 20 2020, 11:36 AM
This revision was automatically updated to reflect the committed changes.