From 9eb6a84285c1597d723be13924a7ad2991cf717f Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 7 Aug 2023 15:00:38 -0700 Subject: Fix `Val` deduplication bug. (#3050) * Fix `Val` deduplication bug. * Fix * Concat stdlib files into a single module. * Remove unnecessary logic in `resolve`. --------- Co-authored-by: Yong He --- source/slang/slang-ast-decl-ref.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ast-decl-ref.cpp') diff --git a/source/slang/slang-ast-decl-ref.cpp b/source/slang/slang-ast-decl-ref.cpp index 4384a6df9..c77cf72ed 100644 --- a/source/slang/slang-ast-decl-ref.cpp +++ b/source/slang/slang-ast-decl-ref.cpp @@ -166,7 +166,7 @@ Val* LookupDeclRef::tryResolve(SubtypeWitness* newWitness, Type* newLookupSource case RequirementWitness::Flavor::val: { - auto satisfyingVal = requirementWitness.getVal(); + auto satisfyingVal = requirementWitness.getVal()->resolve(); return satisfyingVal; } break; -- cgit v1.2.3