[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
// Scop analysis results which may hold AssertingVH that cause an error
// if its value is destroyed.
AM.invalidate<ScopInfoAnalysis>(F);
AM.invalidate<ScopAnalysis>(F);
PreservedAnalyses PA = PreservedAnalyses::all();
PA.abandon<ScopInfoAnalysis>();
PA.abandon<ScopAnalysis>();
AM.invalidate(F, PA);
return PreservedAnalyses::all();
}