[clang] [CodeGen][SystemZ] Replace PointerType::getUnqual(Type) with opaque version (NFC) (PR #126280)
Mats Jun Larsen via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 7 10:02:14 PST 2025
https://github.com/junlarsen created https://github.com/llvm/llvm-project/pull/126280
Follow-up to #126278
>From 31586f0db70c1d7da7decb0fef3473930fe17c7b Mon Sep 17 00:00:00 2001
From: Mats Jun Larsen <mats at jun.codes>
Date: Sat, 8 Feb 2025 02:59:34 +0900
Subject: [PATCH] [CodeGen][SystemZ] Replace PointerType::getUnqual(Type) with
opaque version (NFC)
Follow-up to #126278
---
clang/lib/CodeGen/Targets/SystemZ.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/lib/CodeGen/Targets/SystemZ.cpp b/clang/lib/CodeGen/Targets/SystemZ.cpp
index 23c96fa5cf98cb3..9bb8ddbc548d2d1 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())
More information about the cfe-commits
mailing list