From 1343ab79fcd0ff9e5ffebbcf95414e51ab19e9cd Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 25 Jul 2024 11:49:07 -0700 Subject: Fix around extensions and `IDifferentiable` requirement synthesis. (#4729) * Check extensions before function parameters. Fix decl ref formation for synthesized differentiable requirements that are inside an extension. * Fix clang errors. * More clang fix. * Fix warnings. * Fix build error. * Fix. * Fix typo. --- source/slang/slang-ast-type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ast-type.cpp') diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp index 2dc746e09..47cd68b9e 100644 --- a/source/slang/slang-ast-type.cpp +++ b/source/slang/slang-ast-type.cpp @@ -559,7 +559,7 @@ DeclRef ExtractExistentialType::getThisTypeDeclRef() } SLANG_ASSERT(thisTypeDecl); - DeclRef specialiedInterfaceDeclRef = getCurrentASTBuilder()->getLookupDeclRef(openedWitness, thisTypeDecl); + DeclRef specialiedInterfaceDeclRef = getCurrentASTBuilder()->getLookupDeclRef(openedWitness, thisTypeDecl).as(); this->cachedThisTypeDeclRef = specialiedInterfaceDeclRef; return specialiedInterfaceDeclRef; -- cgit v1.2.3