diff --git a/bolt/lib/Profile/DataReader.cpp b/bolt/lib/Profile/DataReader.cpp --- a/bolt/lib/Profile/DataReader.cpp +++ b/bolt/lib/Profile/DataReader.cpp @@ -1331,7 +1331,8 @@ if (getBranchData(Function) || getMemData(Function)) return true; - if (getBranchDataForNames(Function.getNames()) || + if (getFuncSampleData(Function.getNames()) || + getBranchDataForNames(Function.getNames()) || getMemDataForNames(Function.getNames())) return true;