================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits