[llvm] [CodeGen][NewPM] Port LiveDebugVariables to NPM (PR #115468)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 04:05:27 PST 2024


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 0c0d7a6ec7ece55d4516d7b902d488b42c850e16 b4441138103c38aae64fb7e0760f90f839c5cce8 --extensions cpp,h -- llvm/include/llvm/CodeGen/LiveDebugVariables.h llvm/include/llvm/InitializePasses.h llvm/lib/CodeGen/CodeGen.cpp llvm/lib/CodeGen/LiveDebugVariables.cpp llvm/lib/CodeGen/RegAllocBasic.cpp llvm/lib/CodeGen/RegAllocGreedy.cpp llvm/lib/CodeGen/RegAllocGreedy.h llvm/lib/CodeGen/StackSlotColoring.cpp llvm/lib/CodeGen/VirtRegMap.cpp llvm/lib/Target/LoongArch/LoongArchDeadRegisterDefinitions.cpp llvm/lib/Target/RISCV/RISCVDeadRegisterDefinitions.cpp llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 55be584ebd..6b26e8c955 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -1322,7 +1322,7 @@ LiveDebugVariables::~LiveDebugVariables() {
 }
 
 void LiveDebugVariables::releaseMemory() {
-  if (PImpl) 
+  if (PImpl)
     static_cast<LDVImpl *>(PImpl)->clear();
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/115468


More information about the llvm-commits mailing list