[NFC] remove const from FunctionPropertiesAnalysis::run, keep on Result

The goal in 75881d8b02 was just modifying what `Result` is, didn't
need to also modify ::run.
This commit is contained in:
Mircea Trofin 2022-04-28 15:10:21 -07:00
parent 9aa6a47973
commit 49942d595f
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public:
using Result = const FunctionPropertiesInfo;
Result run(Function &F, FunctionAnalysisManager &FAM);
FunctionPropertiesInfo run(Function &F, FunctionAnalysisManager &FAM);
};
/// Printer pass for the FunctionPropertiesAnalysis results.

View File

@ -73,7 +73,7 @@ void FunctionPropertiesInfo::print(raw_ostream &OS) const {
AnalysisKey FunctionPropertiesAnalysis::Key;
const FunctionPropertiesInfo
FunctionPropertiesInfo
FunctionPropertiesAnalysis::run(Function &F, FunctionAnalysisManager &FAM) {
return FunctionPropertiesInfo::getFunctionPropertiesInfo(
F, FAM.getResult<LoopAnalysis>(F));