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
IRGen: GenericContextScope always resets CurGenericSignature to old value
Previously, we didn't reset it if the old value was null, however this
enabled a very fragile anti-pattern:
// ... CurGenericSignature is not set here ...
{
GenericContextScope scope(IGM, newSig);
// signature is now newSig
...
}
// ... old signature is still newSig!
foo(IGM.getCurGenericContext()); // works, most of the time
0 commit comments