[llvm] 4bd072c - [LAA] Fix the build with older versions of Clang
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 18 05:02:31 PDT 2022
Author: Benjamin Kramer
Date: 2022-07-18T14:01:47+02:00
New Revision: 4bd072c56b878af3b7a274dd942e7f8ccf632b32
URL: https://github.com/llvm/llvm-project/commit/4bd072c56b878af3b7a274dd942e7f8ccf632b32
DIFF: https://github.com/llvm/llvm-project/commit/4bd072c56b878af3b7a274dd942e7f8ccf632b32.diff
LOG: [LAA] Fix the build with older versions of Clang
llvm/lib/Analysis/LoopAccessAnalysis.cpp:916:12: error: no viable conversion from returned value of type 'SmallVector<[...], 2>' to function return type 'SmallVector<[...], (default)
CalculateSmallVectorDefaultInlinedElements<T>::value aka 3>'
return Scevs;
^~~~~
Added:
Modified:
llvm/lib/Analysis/LoopAccessAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 1a673e4b305e..f7f0dc4dcb1d 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -908,7 +908,7 @@ findForkedPointer(PredicatedScalarEvolution &PSE,
const Loop *L) {
ScalarEvolution *SE = PSE.getSE();
assert(SE->isSCEVable(Ptr->getType()) && "Value is not SCEVable!");
- SmallVector<std::pair<const SCEV *, bool>, 2> Scevs;
+ SmallVector<std::pair<const SCEV *, bool>> Scevs;
findForkedSCEVs(SE, L, Ptr, Scevs, MaxForkedSCEVDepth);
// For now, we will only accept a forked pointer with two possible SCEVs.
More information about the llvm-commits
mailing list