]> granicus.if.org Git - llvm/commit
[sancov] Instrument reachable blocks that end in unreachable
authorReid Kleckner <rnk@google.com>
Thu, 28 Feb 2019 22:54:30 +0000 (22:54 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 28 Feb 2019 22:54:30 +0000 (22:54 +0000)
commitf9dc50f1b1da14d751a8a3cb9f5a1b76b1ddcffc
treefb0e8423ea6d797bc99ad9ea95108556acf8a0cd
parent35823ce58da9d14473287e92db3aa88331ae3131
[sancov] Instrument reachable blocks that end in unreachable

Summary:
These sorts of blocks often contain calls to noreturn functions, like
longjmp, throw, or trap. If they don't end the program, they are
"interesting" from the perspective of sanitizer coverage, so we should
instrument them. This was discussed in https://reviews.llvm.org/D57982.

Reviewers: kcc, vitalybuka

Subscribers: llvm-commits, craig.topper, efriedma, morehouse, hiraditya

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58740

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355152 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
test/Instrumentation/SanitizerCoverage/tracing.ll