[Polly] Fix PM invalidate usage after D100519

This commit is contained in:
Fangrui Song 2021-04-15 18:41:20 -07:00
parent 68744bb479
commit acf7e55783
1 changed files with 4 additions and 2 deletions

View File

@ -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();
} }