Skip to content

Commit 08acc3f

Browse files
[Analysis] Copy-construct SmallVector (NFC) (llvm#105911)
1 parent 83a5c7c commit 08acc3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/LazyValueInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ class LazyValueInfoImpl {
512512
} // namespace llvm
513513

514514
void LazyValueInfoImpl::solve() {
515-
SmallVector<std::pair<BasicBlock *, Value *>, 8> StartingStack(
516-
BlockValueStack.begin(), BlockValueStack.end());
515+
SmallVector<std::pair<BasicBlock *, Value *>, 8> StartingStack =
516+
BlockValueStack;
517517

518518
unsigned processedCount = 0;
519519
while (!BlockValueStack.empty()) {

0 commit comments

Comments
 (0)