[llvm-commits] [llvm] r126959 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Bob Wilson
bob.wilson at apple.com
Thu Mar 3 13:12:45 PST 2011
On Mar 3, 2011, at 12:08 PM, Devang Patel wrote:
> Author: dpatel
> Date: Thu Mar 3 14:08:10 2011
> New Revision: 126959
>
> URL: http://llvm.org/viewvc/llvm-project?rev=126959&view=rev
> Log:
> Fix thinko in previous check-in.
> Add comment.
>
> Modified:
> llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
>
> Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=126959&r1=126958&r2=126959&view=diff
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
> +++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Mar 3 14:08:10 2011
> @@ -2333,7 +2333,9 @@
> 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;
typo: s/arugment/argument/
More information about the llvm-commits
mailing list