summaryrefslogtreecommitdiffstats
path: root/source/slang/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/parser.cpp')
-rw-r--r--source/slang/parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/parser.cpp b/source/slang/parser.cpp
index 4c96929d8..0c6419ae3 100644
--- a/source/slang/parser.cpp
+++ b/source/slang/parser.cpp
@@ -821,7 +821,7 @@ namespace Slang
auto keywordToken = advanceToken(parser);
RefPtr<RefObject> parsedObject = syntaxDecl->parseCallback(parser, syntaxDecl->parseUserData);
- auto syntax = dynamicCast<T>(parsedObject);
+ auto syntax = as<T>(parsedObject);
if (syntax)
{
@@ -2997,7 +2997,7 @@ namespace Slang
// then we really want the modifiers to apply to the inner declaration.
//
RefPtr<Decl> declToModify = decl;
- if(auto genericDecl = decl.as<GenericDecl>())
+ if(auto genericDecl = as<GenericDecl>(decl))
declToModify = genericDecl->inner;
AddModifiers(declToModify.Ptr(), modifiers.first);