Skip to content

Commit

Permalink
[LAA] Fix the build with older versions of Clang
Browse files Browse the repository at this point in the history
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;
           ^~~~~
  • Loading branch information
d0k committed Jul 18, 2022
1 parent 9234a7c commit 4bd072c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Analysis/LoopAccessAnalysis.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit 4bd072c

Please sign in to comment.