mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0ba49844c
commit
e1c77ca37a
@ -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