[PATCH] D38223: Make sure the basic block has an insertion point before dereferencing it

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 12:45:08 PDT 2017


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

Oh, one consequence of this is that, when normal C++ exceptions are enabled (/EHsc), C++ functions with destructors will not be instrumented for coverage. Basically, this would make gcov incompatible with codebases that use exceptions on Windows. If you disable exceptions and occaisionally use SEH, they'll work fine, which I'm guessing is the case, since you only hit this on SEH code, not normal C++ try/catch.

I'm happy to defer fixing this until a user comes by who cares about enabling C++ EH and gcov. looks good


https://reviews.llvm.org/D38223





More information about the llvm-commits mailing list