commit | 148228909a666bbe2647b90f8c18b6e00bc8be80 | [log] [tgz] |
---|---|---|
author | Jonas Hahnfeld <hahnjo@hahnjo.de> | Tue Sep 04 15:13:23 2018 +0000 |
committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | Tue Sep 04 15:13:23 2018 +0000 |
tree | 589cb81ae7e55ee4d2710182c6f2397a0a9393a1 | |
parent | 44cbbcf605241e4012a072430456b874497d9439 [diff] |
[libomptarget] PR38704: Fix erase of ShadowPtrMap erase() invalidates the iterator and returns a new one pointing to the following element. The code now follows the example at https://en.cppreference.com/w/cpp/container/map/erase. (The added testcase crashes without this patch.) Reported by David Binderman (https://llvm.org/PR38704)! Differential Revision: https://reviews.llvm.org/D51623 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@341371 91177308-0d34-0410-b5e6-96231b3b80d8