================ @@ -489,3 +494,92 @@ void CGHLSLRuntime::generateGlobalCtorDtorCalls() { GV->eraseFromParent(); } } + +// Returns handle type from a resource, if the type is a resource +static const HLSLAttributedResourceType * +findHandleTypeOnResource(const clang::Type *Ty) { + return HLSLAttributedResourceType::findHandleTypeOnResource(Ty); +} ---------------- bogner wrote:
Let's just call the static member directly where it's used. https://github.com/llvm/llvm-project/pull/111207 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits