diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-04-16 03:18:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-15 20:18:58 -0700 |
| commit | 786f456c2558f07c5a396e25ecb635a3c5480313 (patch) | |
| tree | 94d075a18166337ed0386cf6cbfd20f9c042b544 /source/slang/slang-check-decl.cpp | |
| parent | d0b6a0b1ab49b5958015f31364c5ad73d9cd03eb (diff) | |
Use the latest Ubuntu version not specific old version (#6825)
* Use the latest Ubuntu version not specific old version
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
| -rw-r--r-- | source/slang/slang-check-decl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index da2300d8a..899b04b8b 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -7069,7 +7069,8 @@ bool SemanticsVisitor::checkInterfaceConformance( // the time we are compiling and handle those, and punt on the larger issue // for a bit longer. // - for (auto candidateExt : getCandidateExtensions(superInterfaceDeclRef, this)) + auto candidateExtensions = getCandidateExtensions(superInterfaceDeclRef, this); + for (const auto& candidateExt : candidateExtensions) { // We need to apply the extension to the interface type that our // concrete type is inheriting from. @@ -11272,7 +11273,8 @@ void _foreachDirectOrExtensionMemberOfType( if (auto aggTypeDeclRef = containerDeclRef.as<AggTypeDecl>()) { auto aggType = DeclRefType::create(semantics->getASTBuilder(), aggTypeDeclRef); - for (auto extDecl : getCandidateExtensions(aggTypeDeclRef, semantics)) + auto candidateExtensions = getCandidateExtensions(aggTypeDeclRef, semantics); + for (auto extDecl : candidateExtensions) { // Note that `extDecl` may have been declared for a type // base on the declaration that `aggTypeDeclRef` refers |
