[clang] [FMV] Emit the resolver along with the default version definition. (PR #84405)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 15 08:35:13 PDT 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 8c4546f350fbce938d8fbc85d9e353d011f3f673 2576857fe4b5c0b99c1a29c07f92c80498687665 -- clang/lib/CodeGen/CodeGenModule.cpp clang/lib/CodeGen/CodeGenModule.h clang/test/CodeGen/attr-target-version.c clang/test/CodeGenCXX/attr-target-version.cpp
``````````
</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 ae47e4f1f1..01ba6f4e4d 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -4128,7 +4128,7 @@ void CodeGenModule::emitMultiVersionFunctions() {
} else {
const auto *TVA = CurFD->getAttr<TargetVersionAttr>();
if (CurFD->isUsed() || (TVA->isDefaultVersion() &&
- CurFD->doesThisDeclarationHaveABody()))
+ CurFD->doesThisDeclarationHaveABody()))
EmitResolver = true;
llvm::SmallVector<StringRef, 8> Feats;
TVA->getFeatures(Feats);
``````````
</details>
https://github.com/llvm/llvm-project/pull/84405
More information about the cfe-commits
mailing list