Skip to content

Commit df2e8ee

Browse files
authored
[CodeGen][AArch64] Replace PointerType::getUnqual(Type) with opaque version (NFC) (#126278)
Follow-up to #123569
1 parent 54e0c2b commit df2e8ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CodeGen/Targets/AArch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ RValue AArch64ABIInfo::EmitAAPCSVAArg(Address VAListAddr, QualType Ty,
843843

844844
llvm::Type *BaseTy = CGF.ConvertType(Ty);
845845
if (IsIndirect)
846-
BaseTy = llvm::PointerType::getUnqual(BaseTy);
846+
BaseTy = llvm::PointerType::getUnqual(BaseTy->getContext());
847847
else if (AI.getCoerceToType())
848848
BaseTy = AI.getCoerceToType();
849849

@@ -961,7 +961,7 @@ RValue AArch64ABIInfo::EmitAAPCSVAArg(Address VAListAddr, QualType Ty,
961961
if (IsIndirect) {
962962
// If it's been passed indirectly (actually a struct), whatever we find from
963963
// stored registers or on the stack will actually be a struct **.
964-
MemTy = llvm::PointerType::getUnqual(MemTy);
964+
MemTy = llvm::PointerType::getUnqual(MemTy->getContext());
965965
}
966966

967967
const Type *Base = nullptr;

0 commit comments

Comments
 (0)