Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Thanks! Lgtm with a few nits.
llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp | ||
---|---|---|
207 | ISTM that these asserts could be tightened, e.g ASSERT_EQ(I, OutputCMRs[I].FileID). | |
209 | Is there a reason to prefer OutputCMRs[I].LineStart over OutputCMRs[I].FileID on this line? | |
231 | I think this would be easier to read as EXPECT_TRUE(!Data.empty()). |
llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp | ||
---|---|---|
207 | IMHO the test shouldn't be more tighter than necessary. This test only checks that all regions are bound to the correct files and not intended to check the exact order of loaded regions as regions could be rearranged by writer. | |
209 | The same as above, the test shouldn't rely on any specific sorting order of regions. | |
231 | You are right, I'll change it. |
Thanks, lgtm with the one nit.
llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp | ||
---|---|---|
209 | I see. |
ISTM that these asserts could be tightened, e.g ASSERT_EQ(I, OutputCMRs[I].FileID).