[PowerPC] Clear the set of symbols that need to be updated in MCTargetStreamer
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 15 Apr 2020 20:40:51 +0000 (15:40 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 15 Apr 2020 20:42:02 +0000 (15:42 -0500)
commitc196e2ca48b739cae7d83e1ee0136f426f60aa53
tree9f3fdebbcb093fb899f80d2c97b1857ab1154ae9
parent0b21f15e141737e421845b4a1993c7521af86ae6
[PowerPC] Clear the set of symbols that need to be updated in MCTargetStreamer

We have added code to correct the .localentry values on assignments. However, we
never clear the set so presumably it will still contain the (now dangling)
MCSymbol pointers across a call to finish() and reset() in the streamer.

This is based on my speculation that it is the reason we are getting
segmentation faults mentioned in https://bugs.llvm.org/show_bug.cgi?id=45366

Fixes: https://bugs.llvm.org/show_bug.cgi?id=45366

Differential revision: https://reviews.llvm.org/D78196
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp