mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
In DwarfEHPrepare, after all passes are run, RewindFunction may be a dangling
pointer to a dead function. To make sure it's valid, doFinalization nullptrs RewindFunction just like the constructor and so it will be found on next run. llvm-svn: 217737
This commit is contained in:
parent
89c98636b8
commit
5f0401446e
@ -51,6 +51,11 @@ namespace {
|
||||
|
||||
bool runOnFunction(Function &Fn) override;
|
||||
|
||||
bool doFinalization(Module &M) override {
|
||||
RewindFunction = nullptr;
|
||||
return false;
|
||||
}
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override { }
|
||||
|
||||
const char *getPassName() const override {
|
||||
|
Loading…
Reference in New Issue
Block a user