We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15df878 commit cd164c2Copy full SHA for cd164c2
llvm/lib/ProfileData/SampleProfReader.cpp
@@ -826,6 +826,9 @@ bool SampleProfileReaderExtBinaryBase::useFuncOffsetList() const {
826
std::error_code
827
SampleProfileReaderExtBinaryBase::read(const DenseSet<StringRef> &FuncsToUse,
828
SampleProfileMap &Profiles) {
829
+ if (FuncsToUse.empty())
830
+ return sampleprof_error::success;
831
+
832
Data = ProfileSecRange.first;
833
End = ProfileSecRange.second;
834
if (std::error_code EC = readFuncProfiles(FuncsToUse, Profiles))
0 commit comments