[clang] [CodeGen][XCore] Replace PointerType::getUnqual(Type) with opaque version (NFC) (PR #126279)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 7 10:01:45 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Mats Jun Larsen (junlarsen)
<details>
<summary>Changes</summary>
Follow-up to #<!-- -->123569
---
Full diff: https://github.com/llvm/llvm-project/pull/126279.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/Targets/XCore.cpp (+1-1)
``````````diff
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();
``````````
</details>
https://github.com/llvm/llvm-project/pull/126279
More information about the cfe-commits
mailing list