Skip to content

Commit 16cbc00

Browse files
committed
[ConstraintSystem] Switch to useDC for getUnopenedTypeOfReference while calling from getTypeOfReference
1 parent 97fa263 commit 16cbc00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
10161016
// Determine the type of the value, opening up that type if necessary.
10171017
bool wantInterfaceType = !varDecl->getDeclContext()->isLocalContext();
10181018
Type valueType =
1019-
getUnopenedTypeOfReference(varDecl, Type(), DC, base, wantInterfaceType);
1019+
getUnopenedTypeOfReference(varDecl, Type(), useDC, base, wantInterfaceType);
10201020

10211021
assert(!valueType->hasUnboundGenericType() &&
10221022
!valueType->hasTypeParameter());

0 commit comments

Comments
 (0)