================
@@ -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
----------------
vtjnash wrote:

Agreed. This copy of CreateMemTemp happened because CreateMemTemp is currently 
hard-coded to unconditionally cast to LangAS::Generic (something 
https://github.com/llvm/llvm-project/pull/181390 is intended to fix as a 
followup, hopefully eventually getting llvm back to just using CreateMemTemp 
here)

https://github.com/llvm/llvm-project/pull/181256
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to