Skip to content

Commit

Permalink
Fix runtime memory error.
Browse files Browse the repository at this point in the history
  • Loading branch information
TIFitis committed Sep 18, 2024
1 parent 881d8c6 commit 43624d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2854,7 +2854,7 @@ static llvm::omp::OpenMPOffloadMappingFlags mapParentWithMembers(
ompBuilder.setCorrectMemberOfFlag(mapFlag, memberOfFlag);
combinedInfo.Types.emplace_back(mapFlag);
combinedInfo.DevicePointers.emplace_back(
llvm::OpenMPIRBuilder::DeviceInfoTy::None);
mapData.DevicePointers[mapDataIndex]);
combinedInfo.Names.emplace_back(LLVM::createMappingInformation(
mapData.MapClause[mapDataIndex]->getLoc(), ompBuilder));
combinedInfo.BasePointers.emplace_back(mapData.BasePointers[mapDataIndex]);
Expand Down Expand Up @@ -2932,7 +2932,7 @@ static void processMapMembersWithParent(

combinedInfo.Types.emplace_back(mapFlag);
combinedInfo.DevicePointers.emplace_back(
mapData.DevicePointers[memberDataIdx]);
llvm::OpenMPIRBuilder::DeviceInfoTy::None);
combinedInfo.Names.emplace_back(
LLVM::createMappingInformation(memberClause.getLoc(), ompBuilder));

Expand Down

0 comments on commit 43624d3

Please sign in to comment.