Changes in directory llvm/lib/Analysis:
ConstantFolding.cpp updated: 1.13 -> 1.14 --- Log message: elimiante a temporary vector --- Diffs of the changes: (+1 -3) ConstantFolding.cpp | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/lib/Analysis/ConstantFolding.cpp diff -u llvm/lib/Analysis/ConstantFolding.cpp:1.13 llvm/lib/Analysis/ConstantFolding.cpp:1.14 --- llvm/lib/Analysis/ConstantFolding.cpp:1.13 Tue Jan 30 18:51:48 2007 +++ llvm/lib/Analysis/ConstantFolding.cpp Tue Jan 30 22:42:05 2007 @@ -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); } } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits