[llvm-commits] CVS: llvm/lib/Transforms/IPO/FunctionResolution.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed May 21 15:53:01 PDT 2003
Changes in directory llvm/lib/Transforms/IPO:
FunctionResolution.cpp updated: 1.26 -> 1.27
---
Log message:
Fix bug: FunctionResolve/2003-05-21-MissingArguments.ll
---
Diffs of the changes:
Index: llvm/lib/Transforms/IPO/FunctionResolution.cpp
diff -u llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.26 llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.27
--- llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.26 Sun Apr 27 20:23:29 2003
+++ llvm/lib/Transforms/IPO/FunctionResolution.cpp Wed May 21 15:51:52 2003
@@ -76,6 +76,11 @@
Params.push_back(V);
}
+
+ // If the function takes extra parameters that are not being passed in, pass
+ // null values in now...
+ for (unsigned i = NumArgsToCopy; i < ParamTys.size(); ++i)
+ Params.push_back(Constant::getNullValue(ParamTys[i]));
// Replace the old call instruction with a new call instruction that calls
// the real function.
More information about the llvm-commits
mailing list