Skip to content

Commit f346abe

Browse files
committed
Fix trailing return type.
1 parent b64d72c commit f346abe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ void StraightLineStrengthReduce::setBasisAndDeltaFor(Candidate &C) {
747747
// Y = A + 2
748748
// Z = A + 3
749749
// Return the delta info for C aginst the new Basis
750-
StraightLineStrengthReduce::compressPath(Candidate &C,
751-
Candidate *Basis) const->DeltaInfo {
750+
auto StraightLineStrengthReduce::compressPath(
751+
Candidate &C, Candidate *Basis) const -> DeltaInfo {
752752
if (!Basis || !Basis->Basis || C.CandidateKind == Candidate::Mul)
753753
return {};
754754
Candidate *Root = Basis;
@@ -849,8 +849,8 @@ void StraightLineStrengthReduce::sortCandidateInstructions() {
849849
"Dependency graph should not have cycles");
850850
}
851851

852-
StraightLineStrengthReduce::pickRewriteCandidate(
853-
Instruction *I) const->Candidate * {
852+
auto StraightLineStrengthReduce::pickRewriteCandidate(Instruction *I) const
853+
-> Candidate * {
854854
// Return the candidate of instruction I that has the highest profit.
855855
auto It = RewriteCandidates.find(I);
856856
if (It == RewriteCandidates.end())

0 commit comments

Comments
 (0)