extractProfTotalWeight checks if the profile type is sample profile, but before that we have to ensure that summary is available. Also expanded the unittest to test the case where there is no summary.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm
unittests/Analysis/ProfileSummaryInfoTest.cpp | ||
---|---|---|
101 ↗ | (On Diff #84395) | It is slightly more readable to do: const char *ProfKind = nullptr; |