[clang] [clang] Fix address spaces on prvalue (PR #221233)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 17 05:23:32 PDT 2026


================
@@ -7682,9 +7682,8 @@ PerformConstructorInitialization(Sema &S,
 
     CurInit = S.CheckForImmediateInvocation(
         CXXTemporaryObjectExpr::Create(
-            S.Context, CalleeDecl,
-            Entity.getType().getNonLValueExprType(S.Context), TSInfo,
-            ConstructorArgs, ParenOrBraceRange, HadMultipleCandidates,
+            S.Context, CalleeDecl, Entity.getType().getNonReferenceType(),
+            TSInfo, ConstructorArgs, ParenOrBraceRange, HadMultipleCandidates,
----------------
elizabethandrews wrote:

Thanks! Your review is on "Request Changes" . Can you please Approve the patch if no further changes are required?

https://github.com/llvm/llvm-project/pull/221233


More information about the cfe-commits mailing list