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 origin/main HEAD --extensions h,cpp -- 
llvm/include/llvm/MC/MCSymbol.h llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp 
llvm/lib/MC/MCSymbol.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp 
b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index e7aff2ef3..14c513c3d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -3357,7 +3357,7 @@ static void emitRangeList(DwarfDebug &DD, AsmPrinter 
*Asm, const Ranges &R,
   bool BaseIsSet = false;
   for (const auto &P : SectionRanges) {
     auto *Base = CUBase;
-    if ((Asm->TM.getTargetTriple().isNVPTX() && DD.tuneForGDB()) || 
+    if ((Asm->TM.getTargetTriple().isNVPTX() && DD.tuneForGDB()) ||
         (DD.useSplitDwarf() && P.first->isLinkerRelaxable())) {
       // PTX does not support subtracting labels from the code section in the
       // debug_loc section.  To work around this, the NVPTX backend needs the
@@ -3429,8 +3429,7 @@ static void emitRangeList(DwarfDebug &DD, AsmPrinter 
*Asm, const Ranges &R,
     }
 
     auto NonRelaxableRanges = llvm::make_filter_range(
-        P.second,
-        [HasRelaxableRanges = DD.useSplitDwarf()](auto &&RS) {
+        P.second, [HasRelaxableRanges = DD.useSplitDwarf()](auto &&RS) {
           if (!HasRelaxableRanges)
             return true;
           return !llvm::isRangeRelaxable(RS->Begin, RS->End);
diff --git a/llvm/lib/MC/MCSymbol.cpp b/llvm/lib/MC/MCSymbol.cpp
index 371e0c78f..7440fd868 100644
--- a/llvm/lib/MC/MCSymbol.cpp
+++ b/llvm/lib/MC/MCSymbol.cpp
@@ -103,4 +103,3 @@ bool llvm::isRangeRelaxable(const MCSymbol *Begin, const 
MCSymbol *End) {
   });
   return IsRelaxableRange;
 }
-

``````````

</details>


https://github.com/llvm/llvm-project/pull/164812
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to