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
[COFF] Initialize, save, and restore isUsedByRegularObj
Before this change, SymbolTable::insert set this boolean to a meaningful
value before calling the appropriate Symbol constructor via
replaceSymbol. I believe this is UB, it is probably valid for a compiler
to zero out a bitfield in the constructor, rather than carefully
preserving the single bit that existed prevoiusly.
After this change, the constructor does the obvious thing, which is to
zero initialize this field, and we explicitly copy the bitfield around
the constructor call in replaceSymbol. This should be an alternative
solution to the problems described in llvm#98447 .
0 commit comments