summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index bddf813f2..f0e7be32b 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -1782,34 +1782,6 @@ namespace Slang
}
}
- Stage findStageByName(String const& name)
- {
- static const struct
- {
- char const* name;
- Stage stage;
- } kStages[] =
- {
- #define PROFILE_STAGE(ID, NAME, ENUM) \
- { #NAME, Stage::ID },
-
- #define PROFILE_STAGE_ALIAS(ID, NAME, VAL) \
- { #NAME, Stage::ID },
-
- #include "profile-defs.h"
- };
-
- for(auto entry : kStages)
- {
- if(name == entry.name)
- {
- return entry.stage;
- }
- }
-
- return Stage::Unknown;
- }
-
bool hasIntArgs(Attribute* attr, int numArgs)
{
if (int(attr->args.Count()) != numArgs)
@@ -3746,6 +3718,7 @@ namespace Slang
// and trying to special case `DeclGroup*` here feels silly.
//
dispatchDecl(stmt->decl);
+ checkModifiers(stmt->decl);
}
void visitBlockStmt(BlockStmt* stmt)