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