Skip to content

Commit 6edf031

Browse files
committed
address Helena
1 parent 17696d8 commit 6edf031

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

clang/lib/Sema/HLSLExternalSemaSource.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,10 @@ struct TemplateParameterListBuilder {
341341
the below C++ code:
342342
343343
template<typename T>
344-
concept is_valid_line_vector =sizeof(T) <= 16;
344+
concept is_typed_resource_element_compatible =sizeof(T) <= 16;
345345
346-
template<typename element_type> requires is_valid_line_vector<element_type>
346+
template<typename element_type> requires
347+
is_typed_resource_element_compatible<element_type>
347348
348349
struct RWBuffer {
349350
element_type Val;
@@ -389,7 +390,6 @@ struct TemplateParameterListBuilder {
389390
);
390391

391392
T->setDeclContext(DC);
392-
T->setReferenced();
393393

394394
QualType ConceptTType = Context.getTypeDeclType(ConceptTTPD);
395395

@@ -636,8 +636,6 @@ ConceptDecl *constructTypedBufferConceptDecl(Sema &S, NamespaceDecl *NSD) {
636636
DeclContext *DC = NSD->getDeclContext();
637637
SourceLocation DeclLoc = SourceLocation();
638638

639-
IdentifierInfo &IsTypedResourceElementCompatibleII =
640-
Context.Idents.get("__is_typed_resource_element_compatible");
641639
IdentifierInfo &ElementTypeII = Context.Idents.get("element_type");
642640
TemplateTypeParmDecl *T = TemplateTypeParmDecl::Create(
643641
Context, Context.getTranslationUnitDecl(), DeclLoc, DeclLoc,
@@ -654,8 +652,8 @@ ConceptDecl *constructTypedBufferConceptDecl(Sema &S, NamespaceDecl *NSD) {
654652
TemplateParameterList *ConceptParams = TemplateParameterList::Create(
655653
Context, DeclLoc, DeclLoc, {T}, DeclLoc, nullptr);
656654

657-
DeclarationName DeclName =
658-
DeclarationName(&IsTypedResourceElementCompatibleII);
655+
DeclarationName DeclName = DeclarationName(
656+
&Context.Idents.get("__is_typed_resource_element_compatible"));
659657
Expr *ConstraintExpr = constructTypedBufferConstraintExpr(S, DeclLoc, T);
660658

661659
// Create a ConceptDecl

0 commit comments

Comments
 (0)