mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix bug: FunctionResolve/2003-05-21-MissingArguments.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
62a4b839a6
commit
c52b30dcfb
@ -77,6 +77,11 @@ static void ConvertCallTo(CallInst *CI, Function *Dest) {
|
||||
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.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user