mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-07 04:10:54 +01:00
Fixed iterator invalidation issue
This commit is contained in:
parent
c48b4d7228
commit
ee364a33b4
1 changed files with 1 additions and 0 deletions
|
@ -1835,6 +1835,7 @@ void Normalizer::intersectClassesWithClass(NormalizedClassType& heres, TypeId th
|
||||||
it = heres.ordering.erase(it);
|
it = heres.ordering.erase(it);
|
||||||
heres.classes.erase(hereTy);
|
heres.classes.erase(hereTy);
|
||||||
heres.pushPair(there, std::move(negations));
|
heres.pushPair(there, std::move(negations));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// If the incoming class is a superclass of the current class, we don't
|
// If the incoming class is a superclass of the current class, we don't
|
||||||
// insert it into the map.
|
// insert it into the map.
|
||||||
|
|
Loading…
Add table
Reference in a new issue