[llvm-commits] [llvm] r103118 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Bob Wilson
bob.wilson at apple.com
Wed May 5 13:44:15 PDT 2010
Author: bwilson
Date: Wed May 5 15:44:15 2010
New Revision: 103118
URL: http://llvm.org/viewvc/llvm-project?rev=103118&view=rev
Log:
Use the right version of "append" to combine two SmallVectors.
This fixes the compile-time regressions seen in last night's tests.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=103118&r1=103117&r2=103118&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Wed May 5 15:44:15 2010
@@ -1604,7 +1604,7 @@
}
}
if (!NeedToSplit.empty()) {
- toSplit.append(NeedToSplit.size(), NeedToSplit.front());
+ toSplit.append(NeedToSplit.begin(), NeedToSplit.end());
return false;
}
More information about the llvm-commits
mailing list