This is an archive of the discontinued LLVM Phabricator instance.

[OMPT] Fix unsafe initialization of ompt_data_t objects.
ClosedPublic

Authored by hbae on Sep 13 2018, 9:53 AM.

Details

Summary

Initializing an ompt_data_t object using the pointer union member is potentially unsafe in 32-bit programs.
This change fixes the issue by using the constant, ompt_data_none.

Diff Detail

Repository
rL LLVM

Event Timeline

hbae created this revision.Sep 13 2018, 9:53 AM
This revision is now accepted and ready to land.Sep 14 2018, 6:15 AM
This revision was automatically updated to reflect the committed changes.