aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/Lint.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-04-13 15:22:40 +0000
committerJay Foad <jay.foad@gmail.com>2011-04-13 15:22:40 +0000
commitd30aa5a1edac5256573e8d76dd155df3d3fdec84 (patch)
tree44ea3dcfd671f35aa164dd360f796af3ee86903e /lib/Analysis/Lint.cpp
parentfd1cced726469e83915f428877a521ba737d35f3 (diff)
downloadexternal_llvm-d30aa5a1edac5256573e8d76dd155df3d3fdec84.zip
external_llvm-d30aa5a1edac5256573e8d76dd155df3d3fdec84.tar.gz
external_llvm-d30aa5a1edac5256573e8d76dd155df3d3fdec84.tar.bz2
PR9214: Convert ConstantExpr::getIndices() to return an ArrayRef, plus
related tweaks to ExprMapKeyType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/Lint.cpp')
-rw-r--r--lib/Analysis/Lint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/Lint.cpp b/lib/Analysis/Lint.cpp
index fc7edc0..f130f30 100644
--- a/lib/Analysis/Lint.cpp
+++ b/lib/Analysis/Lint.cpp
@@ -606,7 +606,7 @@ Value *Lint::findValueImpl(Value *V, bool OffsetOk,
Type::getInt64Ty(V->getContext())))
return findValueImpl(CE->getOperand(0), OffsetOk, Visited);
} else if (CE->getOpcode() == Instruction::ExtractValue) {
- const SmallVector<unsigned, 4> &Indices = CE->getIndices();
+ ArrayRef<unsigned> Indices = CE->getIndices();
if (Value *W = FindInsertedValue(CE->getOperand(0),
Indices.begin(),
Indices.end()))