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

Chris Lattner lattner at cs.uiuc.edu
Thu Nov 7 18:39:00 PST 2002


Changes in directory llvm/lib/Transforms/IPO:

FunctionResolution.cpp updated: 1.14 -> 1.15

---
Log message:

Fix bug: FunctionResolve/2002-11-07-RetMismatch.ll


---
Diffs of the changes:

Index: llvm/lib/Transforms/IPO/FunctionResolution.cpp
diff -u llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.14 llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.15
--- llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.14	Sun Oct 13 12:30:30 2002
+++ llvm/lib/Transforms/IPO/FunctionResolution.cpp	Thu Nov  7 18:38:20 2002
@@ -251,8 +251,7 @@
       // to 'int (int)' or 'int ()' or whatever else is not completely generic.
       //
       Function *F = cast<Function>(Globals[i]);
-      if (!F->getFunctionType()->isVarArg() ||
-          F->getFunctionType()->getNumParams()) {
+      if (!F->isExternal()) {
         if (Concrete)
           return false;   // Found two different functions types.  Can't choose!
         





More information about the llvm-commits mailing list