From 3bc1edf95ba7ec0ed52d80e5f18f167360d44427 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 2 Jul 2016 11:41:39 +0000 Subject: Use arrays or initializer lists to feed ArrayRefs instead of SmallVector where possible. No functionality change intended. llvm-svn: 274431 --- llvm/lib/Analysis/ScalarEvolution.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp') diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index e28587e..4e3e2b5 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -3022,9 +3022,7 @@ ScalarEvolution::getGEPExpr(Type *PointeeType, const SCEV *BaseExpr, const SCEV *ScalarEvolution::getSMaxExpr(const SCEV *LHS, const SCEV *RHS) { - SmallVector Ops; - Ops.push_back(LHS); - Ops.push_back(RHS); + SmallVector Ops = {LHS, RHS}; return getSMaxExpr(Ops); } @@ -3125,9 +3123,7 @@ ScalarEvolution::getSMaxExpr(SmallVectorImpl &Ops) { const SCEV *ScalarEvolution::getUMaxExpr(const SCEV *LHS, const SCEV *RHS) { - SmallVector Ops; - Ops.push_back(LHS); - Ops.push_back(RHS); + SmallVector Ops = {LHS, RHS}; return getUMaxExpr(Ops); } -- cgit v1.1