Skip to content
  • David Blaikie's avatar
    PR15662: Optimized debug info produces out of order function parameters · 6f1a8067
    David Blaikie authored
    When a function is inlined we lazily construct the variables
    representing the function's parameters. After that, we add any remaining
    unused parameters.
    
    If the function doesn't use all the parameters, or uses them out of
    order, then the DWARF would produce them in that order, producing a
    parameter order that doesn't match the source.
    
    This fix causes us to always keep the arg variables at the start of the
    variable list & in the original order from the source.
    
    llvm-svn: 183297
    6f1a8067
Loading