[PGO] Change a `NumVSites == 0` workaround to assert
authorFangrui Song <i@maskray.me>
Mon, 3 Aug 2020 17:09:51 +0000 (10:09 -0700)
committerFangrui Song <i@maskray.me>
Mon, 3 Aug 2020 17:14:03 +0000 (10:14 -0700)
commit317e00dc54c74a2e0fd0c62bdc6a6d68b0d2ca7e
treea7c118bdd68cc710826873ca63cfacc8f89bc6fb
parentac82b918c74f3fab8d4a7c1905277bda6b9bccb4
[PGO] Change a `NumVSites == 0` workaround to assert

The root cause was fixed by 3d6f53018f845e893ad34f64ff2851a2e5c3ba1d.
The workaround added in 99ad956fdaee5398fdcf46fa49cb433cf52dc461 can be changed
to an assert now. (In case the fix regresses, there will be a heap-use-after-free.)
compiler-rt/lib/profile/InstrProfilingValue.c