Skip to content

Commit 5b773fc

Browse files
committed
[Sema] fix lvalue-ness constrain
1 parent ca4c221 commit 5b773fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,12 +2059,12 @@ ConstraintSystem::matchTypesBindTypeVar(
20592059
type.visit([&](Type t) {
20602060
if (auto *tvt = dyn_cast<TypeVariableType>(t.getPointer())) {
20612061
if (!typeVar->getImpl().canBindToLValue()) {
2062-
typeVar->getImpl().setCanBindToLValue(getSavedBindings(),
2063-
/*enabled=*/false);
2062+
tvt->getImpl().setCanBindToLValue(getSavedBindings(),
2063+
/*enabled=*/false);
20642064
}
20652065
if (!typeVar->getImpl().canBindToNoEscape()) {
2066-
typeVar->getImpl().setCanBindToNoEscape(getSavedBindings(),
2067-
/*enabled=*/false);
2066+
tvt->getImpl().setCanBindToNoEscape(getSavedBindings(),
2067+
/*enabled=*/false);
20682068
}
20692069
}
20702070
});

0 commit comments

Comments
 (0)