forked from OSchip/llvm-project
Fix thinko in previous check-in.
Add comment. llvm-svn: 126959
This commit is contained in:
parent
4ab660b077
commit
34a7ab400e
|
@ -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