[llvm] [SandboxIR] Preserve the order of switch cases after revert. (PR #115577)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 14:12:08 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 cb98366ea4ce02e739eb4091c6227b67b60616c9 6bccc01ac4e34dabd081d1c4dcfbc50ae616856f --extensions h,cpp -- llvm/include/llvm/SandboxIR/Tracker.h llvm/lib/SandboxIR/Instruction.cpp llvm/lib/SandboxIR/Tracker.cpp llvm/unittests/SandboxIR/TrackerTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/SandboxIR/TrackerTest.cpp b/llvm/unittests/SandboxIR/TrackerTest.cpp
index 077219b522..4f2cfa6b06 100644
--- a/llvm/unittests/SandboxIR/TrackerTest.cpp
+++ b/llvm/unittests/SandboxIR/TrackerTest.cpp
@@ -963,7 +963,6 @@ define void @foo(i32 %cond0, i32 %cond1) {
   EXPECT_EQ(Switch->getNumCases(), 2u);
   EXPECT_EQ(Switch->findCaseDest(BB0), Zero);
   EXPECT_EQ(Switch->findCaseDest(BB1), One);
-
 }
 
 TEST_F(TrackerTest, SwitchInstPreservesSuccesorOrder) {

``````````

</details>


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


More information about the llvm-commits mailing list