aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-05-05 20:44:15 +0000
committerBob Wilson <bob.wilson@apple.com>2010-05-05 20:44:15 +0000
commitbc786530574016bd34510fcea19d72a18d5405a9 (patch)
treed909d4cdd535dedd001ce0dde7ebbd2d18ee39db /lib
parent9ad2aafef10051cae2987ec3d813b0a6f45d1616 (diff)
downloadexternal_llvm-bc786530574016bd34510fcea19d72a18d5405a9.zip
external_llvm-bc786530574016bd34510fcea19d72a18d5405a9.tar.gz
external_llvm-bc786530574016bd34510fcea19d72a18d5405a9.tar.bz2
Use the right version of "append" to combine two SmallVectors.
This fixes the compile-time regressions seen in last night's tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/GVN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp
index 65b34b1..fdd1766 100644
--- a/lib/Transforms/Scalar/GVN.cpp
+++ b/lib/Transforms/Scalar/GVN.cpp
@@ -1604,7 +1604,7 @@ bool GVN::processNonLocalLoad(LoadInst *LI,
}
}
if (!NeedToSplit.empty()) {
- toSplit.append(NeedToSplit.size(), NeedToSplit.front());
+ toSplit.append(NeedToSplit.begin(), NeedToSplit.end());
return false;
}