[clang] [clang] put EmitParmDecl in the target-requested AS (PR #181256)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 03:47:10 PST 2026
================
@@ -2766,9 +2757,26 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, ParamValue Arg,
DeclPtr = OpenMPLocalAddr;
AllocaPtr = DeclPtr;
} else {
- // Otherwise, create a temporary to hold the value.
- DeclPtr = CreateMemTemp(Ty, getContext().getDeclAlign(&D),
- D.getName() + ".addr", &AllocaPtr);
+ // Otherwise, create a temporary to hold the value, respecting the
----------------
arsenm wrote:
This shouldn't require all of this special case code, with language specifics
https://github.com/llvm/llvm-project/pull/181256
More information about the cfe-commits
mailing list