github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions h,cpp -- 
bolt/include/bolt/Profile/DataAggregator.h bolt/include/bolt/Profile/Heatmap.h 
bolt/lib/Profile/DataAggregator.cpp bolt/lib/Profile/Heatmap.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/bolt/lib/Profile/DataAggregator.cpp 
b/bolt/lib/Profile/DataAggregator.cpp
index ef4799f59..04888ca9d 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -1346,7 +1346,7 @@ std::error_code DataAggregator::printHeatMap() {
   outs() << "HEATMAP: building heat map...\n";
 
   if (opts::BasicAggregation) {
-    for (const auto &[PC, Hits]: BasicSamples)
+    for (const auto &[PC, Hits] : BasicSamples)
       HM.registerAddress(PC, Hits);
   } else {
     for (const auto &[Trace, Info] : FallthroughLBRs)

``````````

</details>


https://github.com/llvm/llvm-project/pull/136531
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to