[clang] [llvm] [HLSL] Allow resource type attributes only on __hlsl_resource_t (PR #110079)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 26 08:42:41 PDT 2024
================
@@ -6191,7 +6191,9 @@ class HLSLAttributedResourceType : public Type, public llvm::FoldingSetNode {
HLSLAttributedResourceType(QualType Canon, QualType Wrapped,
QualType Contained, const Attributes &Attrs)
- : Type(HLSLAttributedResource, Canon, Wrapped->getDependence()),
+ : Type(HLSLAttributedResource, Canon,
+ Contained.isNull() ? TypeDependence::None
+ : Contained->getDependence()),
WrappedType(Wrapped), ContainedType(Contained), Attrs(Attrs) {}
----------------
hekota wrote:
Bug fix - make sure template instantiation transforms the Contained type.
https://github.com/llvm/llvm-project/pull/110079
More information about the cfe-commits
mailing list