Use A.append(...) instead of A.insert(A.end(), ...) when A is a
[oota-llvm.git] / lib / VMCore / ConstantFold.cpp
index c854c852a95a0961772b727fd1d7ec88e8fc7ccf..ec62502ae4df36b7dbbd615776cf5ff8e346776a 100644 (file)
@@ -2194,7 +2194,7 @@ Constant *llvm::ConstantFoldGetElementPtr(Constant *C,
         }
 
         NewIndices.push_back(Combined);
-        NewIndices.insert(NewIndices.end(), Idxs+1, Idxs+NumIdx);
+        NewIndices.append(Idxs+1, Idxs+NumIdx);
         return (inBounds && cast<GEPOperator>(CE)->isInBounds()) ?
           ConstantExpr::getInBoundsGetElementPtr(CE->getOperand(0),
                                                  &NewIndices[0],