[llvm-branch-commits] [CodeGen][CFI] Generalize transparent union parameters (PR #158193)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Sep 11 21:50:15 PDT 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,c -- clang/lib/CodeGen/CodeGenModule.cpp clang/test/CodeGen/cfi-icall-generalize.c clang/test/CodeGen/cfi-icall-normalize2.c clang/test/CodeGen/kcfi-generalize.c clang/test/CodeGen/kcfi-normalize.c
``````````

: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/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 46dbd8566..54597ca58 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -2352,8 +2352,7 @@ static QualType GeneralizeTransparentUnion(QualType Ty) {
   return Ty;
 }
 
-static QualType GeneralizeTransparentUnion(QualType Ty) {
-}
+static QualType GeneralizeTransparentUnion(QualType Ty) {}
 
 // Generalize pointer types to a void pointer with the qualifiers of the
 // originally pointed-to type, e.g. 'const char *' and 'char * const *'

``````````

</details>


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


More information about the llvm-branch-commits mailing list