From 786f456c2558f07c5a396e25ecb635a3c5480313 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Wed, 16 Apr 2025 03:18:58 +0000 Subject: Use the latest Ubuntu version not specific old version (#6825) * Use the latest Ubuntu version not specific old version --- source/slang/slang-check-inheritance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-check-inheritance.cpp') 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* 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, -- cgit v1.2.3