mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Fix thinko in previous check-in.
Add comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb3a65755e
commit
6f676be5ff
@ -2333,7 +2333,9 @@ bool DwarfDebug::addCurrentFnArgument(const MachineFunction *MF,
|
||||
size_t Size = CurrentFnArguments.size();
|
||||
if (Size == 0)
|
||||
CurrentFnArguments.resize(MF->getFunction()->arg_size());
|
||||
else if (ArgNo > Size)
|
||||
// llvm::Function arugment size is not good indicator of how many
|
||||
// arguments does the function have at source level.
|
||||
if (ArgNo > Size)
|
||||
CurrentFnArguments.resize(ArgNo * 2);
|
||||
CurrentFnArguments[ArgNo - 1] = Var;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user