[clang] [CodeGen] Set target features in StartFunction() (PR #207691)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 6 02:58:41 PDT 2026
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,cpp -- clang/lib/CodeGen/CodeGenFunction.cpp clang/lib/CodeGen/CodeGenModule.h clang/test/CodeGenCoroutines/coro-elide.cpp clang/test/CodeGenCoroutines/coro-halo.cpp clang/test/CodeGenCoroutines/pr65018.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/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index b1137d900..9fbf8d169 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1996,6 +1996,7 @@ public:
bool GetCPUAndFeaturesAttributes(GlobalDecl GD,
llvm::AttrBuilder &AttrBuilder,
bool SetTargetFeatures = true);
+
private:
void setNonAliasAttributes(GlobalDecl GD, llvm::GlobalObject *GO);
``````````
</details>
https://github.com/llvm/llvm-project/pull/207691
More information about the cfe-commits
mailing list