Skip to content

Commit

Permalink
[OpenMP] Fix target data use_device mapping bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TIFitis committed Jul 8, 2024
1 parent 0ef3716 commit 970e711
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ void collectMapDataFromMapOperands(
auto findMapInfo = [&mapData](llvm::Value *val, unsigned &index) {
index = 0;
for (llvm::Value *basePtr : mapData.OriginalValue) {
if (basePtr == val)
if (basePtr == val && !mapData.IsAMember[index])
return true;
index++;
}
Expand Down

0 comments on commit 970e711

Please sign in to comment.