diff options
| author | Yong He <yonghe@outlook.com> | 2024-07-25 11:49:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-25 11:49:07 -0700 |
| commit | 1343ab79fcd0ff9e5ffebbcf95414e51ab19e9cd (patch) | |
| tree | ccb40045b16e83aaac126b7a47cff46b0f02ecf4 /source/slang/slang-ast-type.cpp | |
| parent | 3c03d279ee4ccf4796901f4ea6640787d341d11d (diff) | |
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.
Diffstat (limited to 'source/slang/slang-ast-type.cpp')
| -rw-r--r-- | source/slang/slang-ast-type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ThisTypeDecl> ExtractExistentialType::getThisTypeDeclRef() } SLANG_ASSERT(thisTypeDecl); - DeclRef<ThisTypeDecl> specialiedInterfaceDeclRef = getCurrentASTBuilder()->getLookupDeclRef(openedWitness, thisTypeDecl); + DeclRef<ThisTypeDecl> specialiedInterfaceDeclRef = getCurrentASTBuilder()->getLookupDeclRef(openedWitness, thisTypeDecl).as<ThisTypeDecl>(); this->cachedThisTypeDeclRef = specialiedInterfaceDeclRef; return specialiedInterfaceDeclRef; |
