You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix memory error in Vectorizer::mergeEquivalenceClasses()
The issue is resolved by reversing the order of two lines:
const auto &VecTo = EQClasses[KeyTo];
const auto &VecFrom = EQClasses[KeyFrom];
The entry for KeyTo may not exist before the subscript operator, unlike KeyFrom.
Therefore, the vector of instructions for KeyTo must be requested first
to avoid invalidation of the reference to the instructions vector for KeyFrom.
This commit also slightly adjusts the debug printings and adds one more LIT case.
0 commit comments