summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commit0c8b29bcdb98d787830857ae45797420b84dadca (patch)
treee601748eb06645998d9ac40fe302dfc1381c685b /llvm/lib/Transforms
parentd450f06ef4243e45fb078edeffcccc21915c1247 (diff)
downloadbcm5719-llvm-0c8b29bcdb98d787830857ae45797420b84dadca.tar.gz
bcm5719-llvm-0c8b29bcdb98d787830857ae45797420b84dadca.zip
Use the right version of "append" to combine two SmallVectors.
This fixes the compile-time regressions seen in last night's tests. llvm-svn: 103118
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/GVN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index 65b34b13dd4..fdd176605fe 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud