[llvm] [RemoveDIs] Add additional debug-mode verifier checks (PR #84308)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 03:30:28 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 e4882d83d77f9d6a5198ecb7faabd5bf2ce4b730 c195081e5fb8747367dac38af4566e40619c139d -- llvm/lib/IR/Verifier.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index e6e617cc40..951ccc1a8c 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -2675,9 +2675,8 @@ void Verifier::visitFunction(const Function &F) {
         "Attribute after last parameter!", &F);
 
   Check(F.IsNewDbgInfoFormat == F.getParent()->IsNewDbgInfoFormat,
-        "Fn debug format should match parent", &F,
-        F.IsNewDbgInfoFormat, F.getParent(),
-        F.getParent()->IsNewDbgInfoFormat);
+        "Fn debug format should match parent", &F, F.IsNewDbgInfoFormat,
+        F.getParent(), F.getParent()->IsNewDbgInfoFormat);
 
   bool IsIntrinsic = F.isIntrinsic();
 
@@ -3023,9 +3022,8 @@ void Verifier::visitBasicBlock(BasicBlock &BB) {
   }
 
   Check(BB.IsNewDbgInfoFormat == BB.getParent()->IsNewDbgInfoFormat,
-        "BB debug format should match parent", &BB,
-        BB.IsNewDbgInfoFormat, BB.getParent(),
-        BB.getParent()->IsNewDbgInfoFormat);
+        "BB debug format should match parent", &BB, BB.IsNewDbgInfoFormat,
+        BB.getParent(), BB.getParent()->IsNewDbgInfoFormat);
 
   // Confirm that no issues arise from the debug program.
   if (BB.IsNewDbgInfoFormat)

``````````

</details>


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


More information about the llvm-commits mailing list