diff options
| author | ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> | 2024-05-17 00:02:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-16 21:02:49 -0700 |
| commit | 000396cdc4b00f7f8bf92a6569367e5cb9d6ba27 (patch) | |
| tree | 802d9b3e5a83bc77036770dad40b5301331417c6 /source/slang/slang-check-decl.cpp | |
| parent | 99ebb1a0e563af40ca12fcf8e70e90ed5c234d3d (diff) | |
ignore capability system skips the capability pass 100% now (#4183)
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
| -rw-r--r-- | source/slang/slang-check-decl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index fbf5332b8..ab8ffe71d 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -1159,7 +1159,7 @@ namespace Slang /// This call does *not* handle updating the state of `decl`; the /// caller takes responsibility for doing so. /// - static void _dispatchDeclCheckingVisitor(Decl* decl, DeclCheckState state, SemanticsContext const& shared); + static void _dispatchDeclCheckingVisitor(Decl* decl, DeclCheckState state, SemanticsContext& shared); // Make sure a declaration has been checked, so we can refer to it. // Note that this may lead to us recursively invoking checking, @@ -9084,7 +9084,7 @@ namespace Slang } } - static void _dispatchDeclCheckingVisitor(Decl* decl, DeclCheckState state, SemanticsContext const& shared) + static void _dispatchDeclCheckingVisitor(Decl* decl, DeclCheckState state, SemanticsContext& shared) { switch(state) { @@ -9125,7 +9125,8 @@ namespace Slang break; case DeclCheckState::CapabilityChecked: - SemanticsDeclCapabilityVisitor(shared).dispatch(decl); + if(!shared.getOptionSet().getBoolOption(CompilerOptionName::IgnoreCapabilities)) + SemanticsDeclCapabilityVisitor(shared).dispatch(decl); break; } } |
