https://bugs.llvm.org/show_bug.cgi?id=38704
Bug ID: 38704
Summary: libomptarget/src/omptarget.cpp:440: bad erase ?
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: dcb...@hotmail.com
CC: llvm-bugs@lists.llvm.org
openmp-7.0.0rc1.src/libomptarget/src/omptarget.cpp:419] ->
openmp-7.0.0rc1.src/libomptarget/src/omptarget.cpp:440]: (error) Iterator 'it'
used after element has been erased.
Source code is
Device.ShadowPtrMap.erase(it);
maybe better code
it = Device.ShadowPtrMap.erase(it);
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs