Fix a FIXME about the format and add a test.
[oota-llvm.git] / lib / Transforms / Scalar / MemCpyOptimizer.cpp
index c3259254f8b4b2c75ea2ff39024e102e189f1827..8f61ffd84bfcb541369ccb88fddd3eff6c0f3ca1 100644 (file)
@@ -465,7 +465,7 @@ Instruction *MemCpyOpt::tryMergingIntoMemset(Instruction *StartInst,
       AMemSet->setDebugLoc(Range.TheStores[0]->getDebugLoc());
 
     // Zap all the stores.
-    for (SmallVector<Instruction*, 16>::const_iterator
+    for (SmallVectorImpl<Instruction *>::const_iterator
          SI = Range.TheStores.begin(),
          SE = Range.TheStores.end(); SI != SE; ++SI) {
       MD->removeInstruction(*SI);