summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-11 16:22:38 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-11 16:22:38 +0000
commit2cd5ff80033452b1c7569ce46443c240a9a4d573 (patch)
treeb4f0c0110b0bb7b14eee8a71cfa81faa0e4f6b57 /llvm/lib/Analysis/ValueTracking.cpp
parent1761824d72fd5d4c97a444559cd96e8a0064a45b (diff)
downloadbcm5719-llvm-2cd5ff80033452b1c7569ce46443c240a9a4d573.tar.gz
bcm5719-llvm-2cd5ff80033452b1c7569ce46443c240a9a4d573.zip
Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size.
llvm-svn: 186098
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 1b20a25ef26..84a6346f759 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -1526,7 +1526,7 @@ Value *llvm::isBytewiseValue(Value *V) {
// struct. To is the result struct built so far, new insertvalue instructions
// build on that.
static Value *BuildSubAggregate(Value *From, Value* To, Type *IndexedType,
- SmallVector<unsigned, 10> &Idxs,
+ SmallVectorImpl<unsigned> &Idxs,
unsigned IdxSkip,
Instruction *InsertBefore) {
llvm::StructType *STy = dyn_cast<llvm::StructType>(IndexedType);
OpenPOWER on IntegriCloud