Author: Mats Jun Larsen Date: 2025-02-08T13:22:53Z New Revision: 54e0c2bbe2b36b08772ca6e5e3f176d7caf116bd
URL: https://github.com/llvm/llvm-project/commit/54e0c2bbe2b36b08772ca6e5e3f176d7caf116bd DIFF: https://github.com/llvm/llvm-project/commit/54e0c2bbe2b36b08772ca6e5e3f176d7caf116bd.diff LOG: [CodeGen][SystemZ] Replace PointerType::getUnqual(Type) with opaque version (NFC) (#126280) Follow-up to #126278 Added: Modified: clang/lib/CodeGen/Targets/SystemZ.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/Targets/SystemZ.cpp b/clang/lib/CodeGen/Targets/SystemZ.cpp index 23c96fa5cf98cb..9bb8ddbc548d2d 100644 --- a/clang/lib/CodeGen/Targets/SystemZ.cpp +++ b/clang/lib/CodeGen/Targets/SystemZ.cpp @@ -272,7 +272,7 @@ RValue SystemZABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, SZCGI.handleExternallyVisibleObjABI(Ty.getTypePtr(), CGT.getCGM(), /*IsParam*/true); if (IsIndirect) { - DirectTy = llvm::PointerType::getUnqual(DirectTy); + DirectTy = llvm::PointerType::getUnqual(DirectTy->getContext()); UnpaddedSize = DirectAlign = CharUnits::fromQuantity(8); } else { if (AI.getCoerceToType()) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits