Page MenuHomePhabricator

[OpenMP][Offloading] Fixed a crash caused by dereferencing nullptr
ClosedPublic

Authored by tianshilei1992 on Jan 5 2022, 5:42 PM.

Details

Summary

In function DeviceTy::getTargetPointer, Entry could be nullptr because of
zero length array section. We need to check if it is a valid iterator before
using it.

Diff Detail