mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Avoid use-after-free in ~LegacyRTDyldObjectLinkingLayer
Reviewers: lhames Subscribers: mcrosier, jlebar, bixia, llvm-commits Differential Revision: https://reviews.llvm.org/D56521 llvm-svn: 350886
This commit is contained in:
parent
6ec1969254
commit
834bb55870
@ -443,11 +443,14 @@ public:
|
||||
private:
|
||||
ExecutionSession &ES;
|
||||
|
||||
std::map<VModuleKey, std::unique_ptr<LinkedObject>> LinkedObjects;
|
||||
ResourcesGetter GetResources;
|
||||
NotifyLoadedFtor NotifyLoaded;
|
||||
NotifyFinalizedFtor NotifyFinalized;
|
||||
NotifyFreedFtor NotifyFreed;
|
||||
|
||||
// NB! `LinkedObjects` needs to be destroyed before `NotifyFreed` because
|
||||
// `~ConcreteLinkedObject` calls `NotifyFreed`
|
||||
std::map<VModuleKey, std::unique_ptr<LinkedObject>> LinkedObjects;
|
||||
bool ProcessAllSections = false;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user