[llvm-commits] CVS: llvm/lib/Analysis/ConstantFolding.cpp

Chris Lattner sabre at nondot.org
Tue Jan 30 20:42:21 PST 2007



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);
   }
 }
 






More information about the llvm-commits mailing list