[clang] Implement `ByteAddressBuffer` Load/Store methods (PR #176058)

Sarah Spall via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 15 14:27:05 PST 2026


================
@@ -615,7 +634,7 @@ BuiltinTypeMethodBuilder &BuiltinTypeMethodBuilder::dereference(T Ptr) {
   Expr *Deref =
       UnaryOperator::Create(DeclBuilder.SemaRef.getASTContext(), PtrExpr,
                             UO_Deref, PtrExpr->getType()->getPointeeType(),
-                            VK_PRValue, OK_Ordinary, SourceLocation(),
+                            VK_LValue, OK_Ordinary, SourceLocation(),
----------------
spall wrote:

why was this changed from a prvalue to an lvalue?

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


More information about the cfe-commits mailing list