================
@@ -3815,19 +3860,35 @@ bool SemaHLSL::initGlobalResourceDecl(VarDecl *VD) {
CXXMethodDecl *CreateMethod = nullptr;
llvm::SmallVector<Expr *> Args;
+ bool HasCounter = hasCounterHandle(ResourceDecl);
+ std::string CreateMethodName;
----------------
hekota wrote:
```suggestion
const char *CreateMethodName;
```
Using `const char *` will prevent allocation and copying of the string.
https://github.com/llvm/llvm-project/pull/162291
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits