diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-16 23:30:39 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-16 23:30:39 +0000 |
commit | d8e3ac318520a98f61c8f3d73f4f2d92b4b56d53 (patch) | |
tree | 2552a271a770dd447aadc7383f6333cd6dae2abe /lldb/source/Breakpoint/BreakpointIDList.cpp | |
parent | 96dd3635bff94fcce82a166b1114b6fe8c3746e3 (diff) | |
download | bcm5719-llvm-d8e3ac318520a98f61c8f3d73f4f2d92b4b56d53.tar.gz bcm5719-llvm-d8e3ac318520a98f61c8f3d73f4f2d92b4b56d53.zip |
Fix a couple of wrong-code bugs in switch-on-constant optimization:
* recurse through intermediate LabelStmts and AttributedStmts when checking
whether a statement inside a switch declares a variable
* if the end of a compound statement is reachable from the chosen case label,
and the compound statement contains a variable declaration, it's not valid
to just emit the contents of the compound statement -- we must emit the
statement itself or we lose the scope (and thus end lifetimes at the wrong
point)
llvm-svn: 281797
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointIDList.cpp')
0 files changed, 0 insertions, 0 deletions