This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] libomptarget: Protect parent struct from being deallocated
ClosedPublic

Authored by grokos on Feb 13 2017, 2:56 PM.

Details

Summary

Under certain circumstances, a parent struct may be deallocated accidentally when one of the mapped members is being unmapped. This patch fixes the problem.

Diff Detail

Repository
rL LLVM

Event Timeline

grokos created this revision.Feb 13 2017, 2:56 PM
Hahnfeld accepted this revision.Feb 15 2017, 12:04 AM

LGTM - here we have the first problem with this legacy code :-(

This revision is now accepted and ready to land.Feb 15 2017, 12:04 AM

Thanks for the review. As for the problem with legacy code, I'm now working on updating clang to use the new map interface, so this legacy code will soon be removed.

This revision was automatically updated to reflect the committed changes.