[llvm] [CFIInserter] Improve `CSRSavedLocation` struct. (PR #168869)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 09:34:20 PST 2025
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 origin/main HEAD --extensions cpp -- llvm/lib/CodeGen/CFIInstrInserter.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/CFIInstrInserter.cpp b/llvm/lib/CodeGen/CFIInstrInserter.cpp
index e9407aaed..0047cdae1 100644
--- a/llvm/lib/CodeGen/CFIInstrInserter.cpp
+++ b/llvm/lib/CodeGen/CFIInstrInserter.cpp
@@ -320,7 +320,8 @@ void CFIInstrInserter::calculateOutgoingCFAInfo(MBBCFAInfo &MBBInfo) {
break;
}
assert((bool)CSRReg + (bool)CSROffset <= 1 &&
- "A register can only be at an offset from CFA or in another register, but not both!");
+ "A register can only be at an offset from CFA or in another "
+ "register, but not both!");
CSRSavedLocation CSRLoc;
if (CSRReg)
CSRLoc = CSRSavedLocation::createRegister(*CSRReg);
``````````
</details>
https://github.com/llvm/llvm-project/pull/168869
More information about the llvm-commits
mailing list