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 42d4840 commit 3af586fCopy full SHA for 3af586f
bolt/lib/Profile/YAMLProfileReader.cpp
@@ -31,7 +31,7 @@ static llvm::cl::opt<bool>
31
llvm::cl::opt<bool> ProfileUseDFS("profile-use-dfs",
32
cl::desc("use DFS order for YAML profile"),
33
cl::Hidden, cl::cat(BoltOptCategory));
34
-}
+} // namespace opts
35
36
namespace llvm {
37
namespace bolt {
@@ -354,7 +354,7 @@ Error YAMLProfileReader::readProfile(BinaryContext &BC) {
354
matchProfileToFunction(YamlBF, Function);
355
}
356
357
- for (auto &[CommonName, LTOProfiles]: LTOCommonNameMap) {
+ for (const auto &[CommonName, LTOProfiles] : LTOCommonNameMap) {
358
if (!LTOCommonNameFunctionMap.contains(CommonName))
359
continue;
360
std::unordered_set<BinaryFunction *> &Functions =
0 commit comments