InstrProf: Mark code regions after throw expressions as unreachable
authorJustin Bogner <mail@justinbogner.com>
Tue, 28 Apr 2015 06:31:55 +0000 (06:31 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 28 Apr 2015 06:31:55 +0000 (06:31 +0000)
commitf959febf7af3ba5681745845d55489748d8f9ebf
treec866c89e4cf6dc76ab00f5b3c891b5d34d6b5880
parent2a661cd062625ce6155c465d4baab8ef7d99becd
InstrProf: Mark code regions after throw expressions as unreachable

We weren't setting regions as being unreachable after C++ throw
expressions, leading to incorrect count propagations.

llvm-svn: 235967
clang/lib/CodeGen/CodeGenPGO.cpp
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/trycatch.cpp
clang/test/Profile/Inputs/cxx-throws.proftext
clang/test/Profile/cxx-throws.cpp