[llvm] Reapply "[MC] Use a variant to hold MCCFIInstruction state (NFC)" (PR #170342)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 2 09:53:30 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 h -- llvm/include/llvm/MC/MCDwarf.h --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/include/llvm/MC/MCDwarf.h b/llvm/include/llvm/MC/MCDwarf.h
index ddfac483c..caf6ab006 100644
--- a/llvm/include/llvm/MC/MCDwarf.h
+++ b/llvm/include/llvm/MC/MCDwarf.h
@@ -542,8 +542,7 @@ public:
// alternative where the compiler really wants a user-defined default
// constructor. Once we no longer support GCC7 these constructors can be
// replaced with default member initializers and aggregate initialization.
- CommonFields(unsigned Reg,
- int64_t Off = 0,
+ CommonFields(unsigned Reg, int64_t Off = 0,
unsigned Reg2 = std::numeric_limits<unsigned>::max(),
unsigned AddrSpace = 0)
: Register(Reg), Offset(Off), Register2(Reg2), AddressSpace(AddrSpace) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/170342
More information about the llvm-commits
mailing list