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

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 29 10:00:19 PST 2026


================
@@ -422,6 +427,15 @@ Expr *BuiltinTypeMethodBuilder::convertPlaceholder(LocalVar &Var) {
       VD->getType(), VK_LValue);
 }
 
+Expr *BuiltinTypeMethodBuilder::convertPlaceholder(QualType Ty) {
+  ASTContext &AST = DeclBuilder.SemaRef.getASTContext();
+  QualType PtrTy = AST.getPointerType(Ty);
+  // Creates `Ty*()`, a value-initialized null pointer of type Ty*.
----------------
hekota wrote:

```suggestion
  // Creates a value-initialized null pointer of type Ty*.
```
What is `Ty*()`?

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


More information about the cfe-commits mailing list