diff options
author | Paulo Matos <pmatos@igalia.com> | 2023-11-07 17:26:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 17:26:26 +0100 |
commit | 7b9d73c2f90c0ed8497339a16fc39785349d9610 (patch) | |
tree | 5f31fd1d5ffc20ce828ccf3b3d26a969f0528ba7 /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | |
parent | 75d6795e420274346b14aca8b6bd49bfe6030eeb (diff) | |
download | llvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.zip llvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.tar.gz llvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.tar.bz2 |
[NFC] Remove Type::getInt8PtrTy (#71029)
Replace this with PointerType::getUnqual().
Followup to the opaque pointer transition. Fixes an in-code TODO item.
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
-rw-r--r-- | llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp index 58aea37..50759d7 100644 --- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp +++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp @@ -5397,7 +5397,7 @@ TEST_F(OpenMPIRBuilderTest, EmitMapperCall) { GlobalVariable *Mapnames = OMPBuilder.createOffloadMapnames(Names, ".offload_mapnames"); Value *MapnamesArg = Builder.CreateConstInBoundsGEP2_32( - ArrayType::get(Type::getInt8PtrTy(Ctx), TotalNbOperand), Mapnames, + ArrayType::get(PointerType::getUnqual(Ctx), TotalNbOperand), Mapnames, /*Idx0=*/0, /*Idx1=*/0); OMPBuilder.emitMapperCall(Builder.saveIP(), BeginMapperFunc, SrcLocInfo, @@ -6177,7 +6177,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTaskDepend) { ASSERT_NE(NumDepsNoAlias, nullptr); EXPECT_EQ(NumDepsNoAlias->getZExtValue(), 0U); EXPECT_EQ(TaskAllocCall->getOperand(6), - ConstantPointerNull::get(Type::getInt8PtrTy(M->getContext()))); + ConstantPointerNull::get(PointerType::getUnqual(M->getContext()))); EXPECT_FALSE(verifyModule(*M, &errs())); } |