Skip to content

Commit 99a2e89

Browse files
committed
[Reassociate] Const correct a helper function. NFC
llvm-svn: 305945
1 parent 258927e commit 99a2e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/Reassociate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,8 @@ static BinaryOperator *ConvertShiftToMul(Instruction *Shl) {
957957
/// Scan backwards and forwards among values with the same rank as element i
958958
/// to see if X exists. If X does not exist, return i. This is useful when
959959
/// scanning for 'x' when we see '-x' because they both get the same rank.
960-
static unsigned FindInOperandList(SmallVectorImpl<ValueEntry> &Ops, unsigned i,
961-
Value *X) {
960+
static unsigned FindInOperandList(const SmallVectorImpl<ValueEntry> &Ops,
961+
unsigned i, Value *X) {
962962
unsigned XRank = Ops[i].Rank;
963963
unsigned e = Ops.size();
964964
for (unsigned j = i+1; j != e && Ops[j].Rank == XRank; ++j) {

0 commit comments

Comments
 (0)