diff options
author | Robert Lougher <rob.lougher@gmail.com> | 2017-08-03 11:54:02 +0000 |
---|---|---|
committer | Robert Lougher <rob.lougher@gmail.com> | 2017-08-03 11:54:02 +0000 |
commit | 10f740df4d28beeef139c818b7502467ab4eba4b (patch) | |
tree | 53a2a432e26d59872241b1731f746f97ea1167e9 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 2c43dce3ee05431f4f6dc714ee73e1b8980810e2 (diff) | |
download | bcm5719-llvm-10f740df4d28beeef139c818b7502467ab4eba4b.tar.gz bcm5719-llvm-10f740df4d28beeef139c818b7502467ab4eba4b.zip |
[LiveDebugVariables] Use lexical scope to trim debug value live intervals
The debug value live intervals computed by Live Debug Variables may extend
beyond the range of the debug location's lexical scope. In this case,
splitting of an interval can result in an interval outside of the scope being
created, causing extra unnecessary DBG_VALUEs to be emitted. To prevent this,
trim the intervals to the lexical scope.
This resolves PR33730.
Reviewers: aprantl
Differential Revision: https://reviews.llvm.org/D35953
llvm-svn: 309933
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions