summaryrefslogtreecommitdiff
path: root/source/slang/slang-lookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-lookup.cpp')
-rw-r--r--source/slang/slang-lookup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-lookup.cpp b/source/slang/slang-lookup.cpp
index f41d8ff3b..20670e7b3 100644
--- a/source/slang/slang-lookup.cpp
+++ b/source/slang/slang-lookup.cpp
@@ -755,6 +755,7 @@ static void _lookUpInScopes(
auto thisParameterMode = LookupResultItem::Breadcrumb::ThisParameterMode::Default;
auto scope = request.scope;
+
auto endScope = request.endScope;
for (;scope != endScope; scope = scope->parent)
{
@@ -918,7 +919,7 @@ LookupResult lookUp(
ASTBuilder* astBuilder,
SemanticsVisitor* semantics,
Name* name,
- RefPtr<Scope> scope,
+ Scope* scope,
LookupMask mask)
{
LookupRequest request;