HomePhabricator

[PowerPC] Clear the set of symbols that need to be updated in MCTargetStreamer

Authored by nemanjai on Apr 15 2020, 1:40 PM.

Description

[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

Details

Committed
nemanjaiApr 15 2020, 1:42 PM
Differential Revision
D78196: [PowerPC] Clear the set of symbols that need to be updated in MCTargetStreamer
Parents
rG0b21f15e1417: [NFC] Correcting minor typo.
Branches
Unknown
Tags
Unknown