Skip to content

Commit d5a3c4d

Browse files
authored
[OpenMP] Fix target data use_device mapping bug (#111)
1 parent 7ac059c commit d5a3c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ void collectMapDataFromMapOperands(
22302230
auto findMapInfo = [&mapData](llvm::Value *val, unsigned &index) {
22312231
index = 0;
22322232
for (llvm::Value *basePtr : mapData.OriginalValue) {
2233-
if (basePtr == val)
2233+
if (basePtr == val && !mapData.IsAMember[index])
22342234
return true;
22352235
index++;
22362236
}

0 commit comments

Comments
 (0)