forked from OSchip/llvm-project
[Polly] Fix PM invalidate usage after D100519
This commit is contained in:
parent
68744bb479
commit
acf7e55783
|
@ -229,8 +229,10 @@ public:
|
||||||
// therefore all analyses are preserved. However, we must still free the
|
// therefore all analyses are preserved. However, we must still free the
|
||||||
// Scop analysis results which may hold AssertingVH that cause an error
|
// Scop analysis results which may hold AssertingVH that cause an error
|
||||||
// if its value is destroyed.
|
// if its value is destroyed.
|
||||||
AM.invalidate<ScopInfoAnalysis>(F);
|
PreservedAnalyses PA = PreservedAnalyses::all();
|
||||||
AM.invalidate<ScopAnalysis>(F);
|
PA.abandon<ScopInfoAnalysis>();
|
||||||
|
PA.abandon<ScopAnalysis>();
|
||||||
|
AM.invalidate(F, PA);
|
||||||
return PreservedAnalyses::all();
|
return PreservedAnalyses::all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue