[llvm] [NFC] Add fragment-getting functions to DbgRecord (PR #97705)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 01:15:15 PDT 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 32273ea22da6a65ed796b61c1e926649a28f9557 18addf43d6af023ccf1adbacbe02f72ddd7e3072 -- llvm/include/llvm/IR/DbgVariableFragmentInfo.h llvm/include/llvm/IR/DebugInfoMetadata.h llvm/include/llvm/IR/DebugProgramInstruction.h llvm/lib/IR/DebugProgramInstruction.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/IR/DebugProgramInstruction.h b/llvm/include/llvm/IR/DebugProgramInstruction.h
index 734a637a4a..30c85bee46 100644
--- a/llvm/include/llvm/IR/DebugProgramInstruction.h
+++ b/llvm/include/llvm/IR/DebugProgramInstruction.h
@@ -467,7 +467,7 @@ public:
   /// known, otherwise return a zero-sized fragment.
   DbgVariableFragmentInfo getFragmentOrEntireVariable() const {
     if (auto Frag = getFragment())
-      return *Frag; 
+      return *Frag;
     if (auto Sz = getVariable()->getSizeInBits())
       return {*Sz, 0};
     return {0, 0};

``````````

</details>


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


More information about the llvm-commits mailing list