commit | d917fe56926f2f80665fd154eb23ca41e9df6f67 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Jan 31 04:42:05 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Jan 31 04:42:05 2007 +0000 |
tree | 4d59901629f1fc51906e4204123f52fc598e31fb | |
parent | 55eb1c47de30a6b4e8707b6392e878e32a6583e9 [diff] [blame] |
elimiante a temporary vector git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33694 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp index 429f225..8a690fe 100644 --- a/lib/Analysis/ConstantFolding.cpp +++ b/lib/Analysis/ConstantFolding.cpp
@@ -245,9 +245,7 @@ if (Constant *C = SymbolicallyEvaluateGEP(Ops, NumOps, I->getType(), TD)) return C; - return ConstantExpr::getGetElementPtr(Ops[0], - std::vector<Constant*>(Ops+1, - Ops+NumOps)); + return ConstantExpr::getGetElementPtr(Ops[0], Ops+1, NumOps-1); } }