[clang] [CodeGen][XCore] Replace PointerType::getUnqual(Type) with opaque version (NFC) (PR #126279)
Mats Jun Larsen via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 7 10:01:09 PST 2025
https://github.com/junlarsen created https://github.com/llvm/llvm-project/pull/126279
Follow-up to #123569
>From 507705cff12ac89e1f23c0b7233cfd5a13e882d6 Mon Sep 17 00:00:00 2001
From: Mats Jun Larsen <mats at jun.codes>
Date: Sat, 8 Feb 2025 02:57:46 +0900
Subject: [PATCH] [CodeGen][XCore] Replace PointerType::getUnqual(Type) with
opaque version (NFC)
Follow-up to #123569
---
clang/lib/CodeGen/Targets/XCore.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/lib/CodeGen/Targets/XCore.cpp b/clang/lib/CodeGen/Targets/XCore.cpp
index ced4981fd124f6a..b7824bde5f55a4b 100644
--- a/clang/lib/CodeGen/Targets/XCore.cpp
+++ b/clang/lib/CodeGen/Targets/XCore.cpp
@@ -149,7 +149,7 @@ RValue XCoreABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr,
llvm::Type *ArgTy = CGT.ConvertType(Ty);
if (AI.canHaveCoerceToType() && !AI.getCoerceToType())
AI.setCoerceToType(ArgTy);
- llvm::Type *ArgPtrTy = llvm::PointerType::getUnqual(ArgTy);
+ llvm::Type *ArgPtrTy = llvm::PointerType::getUnqual(ArgTy->getContext());
Address Val = Address::invalid();
CharUnits ArgSize = CharUnits::Zero();
More information about the cfe-commits
mailing list