From 000396cdc4b00f7f8bf92a6569367e5cb9d6ba27 Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Fri, 17 May 2024 00:02:49 -0400 Subject: ignore capability system skips the capability pass 100% now (#4183) --- source/slang/slang-check-decl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source') 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; } } -- cgit v1.2.3