Small refactor on VectorizerHint for deduplication
[oota-llvm.git] / lib / Transforms / Scalar / SCCP.cpp
index 90c3520c83239d12f4dadf8f763f89546bf8eca4..32be3e0cdbfde5fa84025a91a74fdf2e9d14d345 100644 (file)
@@ -1010,7 +1010,7 @@ void SCCPSolver::visitGetElementPtrInst(GetElementPtrInst &I) {
   }
 
   Constant *Ptr = Operands[0];
-  ArrayRef<Constant *> Indices(Operands.begin() + 1, Operands.end());
+  auto Indices = makeArrayRef(Operands.begin() + 1, Operands.end());
   markConstant(&I, ConstantExpr::getGetElementPtr(Ptr, Indices));
 }