We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca4c221 commit 5b773fcCopy full SHA for 5b773fc
lib/Sema/CSSimplify.cpp
@@ -2059,12 +2059,12 @@ ConstraintSystem::matchTypesBindTypeVar(
2059
type.visit([&](Type t) {
2060
if (auto *tvt = dyn_cast<TypeVariableType>(t.getPointer())) {
2061
if (!typeVar->getImpl().canBindToLValue()) {
2062
- typeVar->getImpl().setCanBindToLValue(getSavedBindings(),
2063
- /*enabled=*/false);
+ tvt->getImpl().setCanBindToLValue(getSavedBindings(),
+ /*enabled=*/false);
2064
}
2065
if (!typeVar->getImpl().canBindToNoEscape()) {
2066
- typeVar->getImpl().setCanBindToNoEscape(getSavedBindings(),
2067
+ tvt->getImpl().setCanBindToNoEscape(getSavedBindings(),
2068
2069
2070
});
0 commit comments