summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit0091fe8ca18b96418bf7c0c3ea946beccd7559ce (patch)
tree54f6360aa813c2950170ccce5df333b30cd18a2a /llvm/lib/Analysis/Lint.cpp
parentcda53febec45bfea2c71bc38bc472ce9f38dd225 (diff)
downloadbcm5719-llvm-0091fe8ca18b96418bf7c0c3ea946beccd7559ce.tar.gz
bcm5719-llvm-0091fe8ca18b96418bf7c0c3ea946beccd7559ce.zip
PR9214: Convert ConstantExpr::getIndices() to return an ArrayRef, plus
related tweaks to ExprMapKeyType. llvm-svn: 129443
Diffstat (limited to 'llvm/lib/Analysis/Lint.cpp')
-rw-r--r--llvm/lib/Analysis/Lint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp
index fc7edc0525f..f130f30c49d 100644
--- a/llvm/lib/Analysis/Lint.cpp
+++ b/llvm/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()))
OpenPOWER on IntegriCloud