Fixes Issue 9466 - ICE with -cov generation.