summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-inheritance.cpp
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2025-04-16 03:18:58 +0000
committerGitHub <noreply@github.com>2025-04-15 20:18:58 -0700
commit786f456c2558f07c5a396e25ecb635a3c5480313 (patch)
tree94d075a18166337ed0386cf6cbfd20f9c042b544 /source/slang/slang-check-inheritance.cpp
parentd0b6a0b1ab49b5958015f31364c5ad73d9cd03eb (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-inheritance.cpp')
-rw-r--r--source/slang/slang-check-inheritance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-inheritance.cpp b/source/slang/slang-check-inheritance.cpp
index cef9b6a09..37b4d3158 100644
--- a/source/slang/slang-check-inheritance.cpp
+++ b/source/slang/slang-check-inheritance.cpp
@@ -304,7 +304,8 @@ InheritanceInfo SharedSemanticsContext::_calcInheritanceInfo(
Dictionary<Type*, SubtypeWitness*>* additionalSubtypeWitness)
{
bool result = false;
- for (auto extDecl : getCandidateExtensions(extensionTargetDeclRef, &visitor))
+ auto candidateExtensions = getCandidateExtensions(extensionTargetDeclRef, &visitor);
+ for (auto extDecl : candidateExtensions)
{
// The list of *candidate* extensions is computed and
// cached based on the identity of the declaration alone,