[ubsan] partially enable -fsanitize-coverage=N with ubsan. It will work as usual...
authorKostya Serebryany <kcc@google.com>
Tue, 6 Jan 2015 01:31:23 +0000 (01:31 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 6 Jan 2015 01:31:23 +0000 (01:31 +0000)
commitfb42a5a29202b8f71795385bec9965b06836d148
tree0b87b72beb6d725dd16930ec58e9e91665e1c6e3
parentcb0799c16db2b782a8aa54bdf58b66170d4c2270
[ubsan] partially enable -fsanitize-coverage=N with ubsan. It will work as usual in most cases but will not dump coverage on error with -fno-sanitize-recover (that'll be a separate fix)

llvm-svn: 225234
compiler-rt/lib/ubsan/ubsan_init.cc
compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc [new file with mode: 0644]