[llvm] [SandboxIR] Add debug checker to compare IR before/after a revert (PR #115968)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 17:01:05 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 7b5e285d16090c2ddf4ee539c410d24bde52cbea 0a4840249388dbdd612046239126f2be17b0b234 --extensions cpp,h -- llvm/include/llvm/SandboxIR/Context.h llvm/include/llvm/SandboxIR/Instruction.h llvm/include/llvm/SandboxIR/Tracker.h 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/lib/SandboxIR/Tracker.cpp b/llvm/lib/SandboxIR/Tracker.cpp
index 76f8b3e1b8..686ef01409 100644
--- a/llvm/lib/SandboxIR/Tracker.cpp
+++ b/llvm/lib/SandboxIR/Tracker.cpp
@@ -69,9 +69,7 @@ bool IRSnapshotChecker::diff(const ContextSnapshot &Orig,
return DifferenceFound;
}
-void IRSnapshotChecker::save() {
- OrigContextSnapshot = takeSnapshot();
-}
+void IRSnapshotChecker::save() { OrigContextSnapshot = takeSnapshot(); }
void IRSnapshotChecker::expectNoDiff() {
ContextSnapshot CurrContextSnapshot = takeSnapshot();
``````````
</details>
https://github.com/llvm/llvm-project/pull/115968
More information about the llvm-commits
mailing list