Use the right version of "append" to combine two SmallVectors.
authorBob Wilson <bob.wilson@apple.com>
Wed, 5 May 2010 20:44:15 +0000 (20:44 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 5 May 2010 20:44:15 +0000 (20:44 +0000)
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

lib/Transforms/Scalar/GVN.cpp

index 65b34b13dd47b9431cc90e0b3a14267d211e6f71..fdd176605fe9f410b7be6fabb35fdc09e7d97df2 100644 (file)
@@ -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;
   }