summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/DeclTest.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-06-05 05:39:59 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-06-05 05:39:59 +0000
commit6f1a8067fb3e97141cd278eedeee02ff59c04537 (patch)
tree2eddc6c2b43dc302525b21b97b6c68cf3df351a3 /clang/unittests/AST/DeclTest.cpp
parente36464c2f64b0b3bf5697bd4f1f0252144dccd98 (diff)
downloadbcm5719-llvm-6f1a8067fb3e97141cd278eedeee02ff59c04537.tar.gz
bcm5719-llvm-6f1a8067fb3e97141cd278eedeee02ff59c04537.zip
PR15662: Optimized debug info produces out of order function parameters
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
Diffstat (limited to 'clang/unittests/AST/DeclTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud