Skip to content

Commit

Permalink
Revert change to isHLSLEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
hekota committed Jun 7, 2024
1 parent ca6242e commit 9555f5a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clang/include/clang/Basic/Attr.td
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,8 @@ def FunctionTmpl

def HLSLEntry
: SubsetSubject<Function,
[{S->getDeclContext()->getRedeclContext()->isFileContext() &&
S->getStorageClass() != SC_Static}],
[{S->isExternallyVisible() && !isa<CXXMethodDecl>(S)}],
"global functions">;

def HLSLBufferObj : SubsetSubject<HLSLBuffer,
[{isa<HLSLBufferDecl>(S)}],
"cbuffer/tbuffer">;
Expand Down Expand Up @@ -4502,7 +4500,6 @@ def HLSLShader : InheritableAttr {
case HLSLShaderAttr::Mesh: return llvm::Triple::Mesh;
case HLSLShaderAttr::Amplification: return llvm::Triple::Amplification;
}
llvm_unreachable("unknown enumeration value");
}
}];
}
Expand Down

0 comments on commit 9555f5a

Please sign in to comment.