Skip to content

Commit 49942d5

Browse files
committed
[NFC] remove const from FunctionPropertiesAnalysis::run, keep on Result
The goal in 75881d8 was just modifying what `Result` is, didn't need to also modify ::run.
1 parent 9aa6a47 commit 49942d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class FunctionPropertiesAnalysis
6868

6969
using Result = const FunctionPropertiesInfo;
7070

71-
Result run(Function &F, FunctionAnalysisManager &FAM);
71+
FunctionPropertiesInfo run(Function &F, FunctionAnalysisManager &FAM);
7272
};
7373

7474
/// Printer pass for the FunctionPropertiesAnalysis results.

llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void FunctionPropertiesInfo::print(raw_ostream &OS) const {
7373

7474
AnalysisKey FunctionPropertiesAnalysis::Key;
7575

76-
const FunctionPropertiesInfo
76+
FunctionPropertiesInfo
7777
FunctionPropertiesAnalysis::run(Function &F, FunctionAnalysisManager &FAM) {
7878
return FunctionPropertiesInfo::getFunctionPropertiesInfo(
7979
F, FAM.getResult<LoopAnalysis>(F));

0 commit comments

Comments
 (0)