aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-04 08:54:23 -0700
committerGitHub <noreply@github.com>2024-08-04 08:54:23 -0700
commit7df9da7d780f1ece175020c5aef44b4b06df05b7 (patch)
tree6592badbd9bbc7ca877249d16f5685d6e6b34129 /llvm/lib/Analysis/ValueTracking.cpp
parent2e9d2f183f1c4e458201d05e4dea96249f8a8f65 (diff)
downloadllvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.zip
llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.tar.gz
llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.tar.bz2
[llvm] Construct SmallVector with ArrayRef (NFC) (#101872)
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 285284d..2b7611c 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -6122,7 +6122,7 @@ static Value *BuildSubAggregate(Value *From, ArrayRef<unsigned> idx_range,
Type *IndexedType = ExtractValueInst::getIndexedType(From->getType(),
idx_range);
Value *To = PoisonValue::get(IndexedType);
- SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end());
+ SmallVector<unsigned, 10> Idxs(idx_range);
unsigned IdxSkip = Idxs.size();
return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore);