aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-06-21 20:10:11 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-06-21 20:10:11 +0000
commit8b65f102cd4c5a066195de00379f74411d8c7fcb (patch)
tree1747e828bc6066d7689e1540aa9c5f85555239d4 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent463aed879dea61e40069b04e32ba8123938cf91d (diff)
downloadllvm-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