[llvm-commits] CVS: llvm/lib/Transforms/IPO/GlobalOpt.cpp

Chris Lattner sabre at nondot.org
Tue Jan 30 15:15:07 PST 2007



Changes in directory llvm/lib/Transforms/IPO:

GlobalOpt.cpp updated: 1.89 -> 1.90
---
Log message:

adjust to api change


---
Diffs of the changes:  (+2 -1)

 GlobalOpt.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Transforms/IPO/GlobalOpt.cpp
diff -u llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.89 llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.90
--- llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.89	Tue Jan 30 14:08:38 2007
+++ llvm/lib/Transforms/IPO/GlobalOpt.cpp	Tue Jan 30 17:14:52 2007
@@ -1775,7 +1775,8 @@
       
       if (Callee->isDeclaration()) {
         // If this is a function we can constant fold, do it.
-        if (Constant *C = ConstantFoldCall(Callee, Formals)) {
+        if (Constant *C = ConstantFoldCall(Callee, &Formals[0],
+                                           Formals.size())) {
           InstResult = C;
         } else {
           return false;






More information about the llvm-commits mailing list