diff options
Diffstat (limited to 'source/slang/reflection.cpp')
| -rw-r--r-- | source/slang/reflection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/reflection.cpp b/source/slang/reflection.cpp index ce42cf10d..68e0ce9e5 100644 --- a/source/slang/reflection.cpp +++ b/source/slang/reflection.cpp @@ -265,16 +265,16 @@ SLANG_API SlangTypeKind spReflectionType_GetKind(SlangReflectionType* inType) } else if( auto declRefType = as<DeclRefType>(type) ) { - auto declRef = declRefType->declRef; - if( auto structDeclRef = declRef.as<StructDecl>() ) + const auto& declRef = declRefType->declRef; + if(declRef.is<StructDecl>() ) { return SLANG_TYPE_KIND_STRUCT; } - else if (auto genericParamType = declRef.as<GlobalGenericParamDecl>()) + else if (declRef.is<GlobalGenericParamDecl>()) { return SLANG_TYPE_KIND_GENERIC_TYPE_PARAMETER; } - else if (auto interfaceType = declRef.as<InterfaceDecl>()) + else if (declRef.is<InterfaceDecl>()) { return SLANG_TYPE_KIND_INTERFACE; } |
