Code coverage with WMO

Hey everyone,

A few years ago I filed a few radars related to code coverage + WMO (or at least it seems like these in combination is the issue):

http://www.openradar.me/42562585
http://www.openradar.me/42564768

And while both of these still appear to be issues, my bigger question at this point is should code coverage be accurate in general with WMO? Having a cursory (and uniformed) look at the compiler code around this area (SILProfiler.cpp / SILCoverageMap.cpp) I don't see anything obvious that makes it look like these are incompatible, and since they don't error when you pass -whole-module-optimization alongside -profile-generate -profile-coverage-mapping I assume they should work together, but I'm wondering what the expectation is here.

Thanks!

3 Likes
Terms of Service

Privacy Policy

Cookie Policy