Skip to content

Commit 2791fa2

Browse files
committed
Fix IRBuilderTest failure.
1 parent d80da54 commit 2791fa2

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6247,8 +6247,9 @@ TEST_F(OpenMPIRBuilderTest, TargetRegion) {
62476247
};
62486248

62496249
auto CustomMapperCB = [&](unsigned int I) { return nullptr; };
6250-
llvm::OpenMPIRBuilder::TargetDataInfo Info(/*RequiresDevicePointerInfo=*/true,
6251-
/*SeparateBeginEndCalls=*/true);
6250+
llvm::OpenMPIRBuilder::TargetDataInfo Info(
6251+
/*RequiresDevicePointerInfo=*/false,
6252+
/*SeparateBeginEndCalls=*/true);
62526253

62536254
TargetRegionEntryInfo EntryInfo("func", 42, 4711, 17);
62546255
OpenMPIRBuilder::LocationDescription OmpLoc({Builder.saveIP(), DL});
@@ -6430,8 +6431,9 @@ TEST_F(OpenMPIRBuilderTest, TargetRegionDevice) {
64306431
OpenMPIRBuilder::TargetKernelDefaultAttrs DefaultAttrs = {
64316432
/*ExecFlags=*/omp::OMPTgtExecModeFlags::OMP_TGT_EXEC_MODE_GENERIC,
64326433
/*MaxTeams=*/{-1}, /*MinTeams=*/0, /*MaxThreads=*/{0}, /*MinThreads=*/0};
6433-
llvm::OpenMPIRBuilder::TargetDataInfo Info(/*RequiresDevicePointerInfo=*/true,
6434-
/*SeparateBeginEndCalls=*/true);
6434+
llvm::OpenMPIRBuilder::TargetDataInfo Info(
6435+
/*RequiresDevicePointerInfo=*/false,
6436+
/*SeparateBeginEndCalls=*/true);
64356437

64366438
ASSERT_EXPECTED_INIT(
64376439
OpenMPIRBuilder::InsertPointTy, AfterIP,
@@ -6814,8 +6816,9 @@ TEST_F(OpenMPIRBuilderTest, ConstantAllocaRaise) {
68146816
OpenMPIRBuilder::TargetKernelDefaultAttrs DefaultAttrs = {
68156817
/*ExecFlags=*/omp::OMPTgtExecModeFlags::OMP_TGT_EXEC_MODE_GENERIC,
68166818
/*MaxTeams=*/{-1}, /*MinTeams=*/0, /*MaxThreads=*/{0}, /*MinThreads=*/0};
6817-
llvm::OpenMPIRBuilder::TargetDataInfo Info(/*RequiresDevicePointerInfo=*/true,
6818-
/*SeparateBeginEndCalls=*/true);
6819+
llvm::OpenMPIRBuilder::TargetDataInfo Info(
6820+
/*RequiresDevicePointerInfo=*/false,
6821+
/*SeparateBeginEndCalls=*/true);
68196822

68206823
ASSERT_EXPECTED_INIT(
68216824
OpenMPIRBuilder::InsertPointTy, AfterIP,

0 commit comments

Comments
 (0)