diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-06-21 20:10:11 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-06-21 20:10:11 +0000 |
commit | 8b65f102cd4c5a066195de00379f74411d8c7fcb (patch) | |
tree | 1747e828bc6066d7689e1540aa9c5f85555239d4 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 463aed879dea61e40069b04e32ba8123938cf91d (diff) | |
download | llvm-8b65f102cd4c5a066195de00379f74411d8c7fcb.zip llvm-8b65f102cd4c5a066195de00379f74411d8c7fcb.tar.gz llvm-8b65f102cd4c5a066195de00379f74411d8c7fcb.tar.bz2 |
Refactor scope building in JumpDiagnostics for simplicity. This fixes a
(currently theoretical) bug where recursive calls to BuildScopeInformation
would do the wrong thing if the type of the statement is one of the kinds with
special handling, but this is not currently observable because the relevant
recursive calls happen to all be for CompoundStmts. (This becomes visible with
the C++17 'constexpr if' feature, where we get a protected scope for the 'then'
/ 'else' cases of some 'if's, and don't necessarily have a corresponding
compound statement.)
llvm-svn: 273309
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions