diff options
author | Alexandros Lamprineas <alexandros.lamprineas@arm.com> | 2024-12-19 12:06:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 12:06:46 +0000 |
commit | 6586c676b42aa9c7e78f9b1d419767a02793a70f (patch) | |
tree | 7eb67dad9e0445efa9fd4c843cb3f9cd13ed3882 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | eace8269d9aeb67013d273735ec1be1002a6fac1 (diff) | |
download | llvm-6586c676b42aa9c7e78f9b1d419767a02793a70f.zip llvm-6586c676b42aa9c7e78f9b1d419767a02793a70f.tar.gz llvm-6586c676b42aa9c7e78f9b1d419767a02793a70f.tar.bz2 |
[FMV][AArch64] Emit mangled default version if explicitly specified. (#120022)
Currently we need at least one more version other than the default to
trigger FMV. However we would like a header file declaration
__attribute__((target_version("default"))) void f(void);
to guarantee that there will be f.default
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 5ac3eef..c49f763 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -4283,7 +4283,7 @@ void CodeGenModule::emitMultiVersionFunctions() { getContext().forEachMultiversionedFunctionVersion( FD, [&](const FunctionDecl *CurFD) { llvm::SmallVector<StringRef, 8> Feats; - bool IsDefined = CurFD->doesThisDeclarationHaveABody(); + bool IsDefined = CurFD->getDefinition() != nullptr; if (const auto *TA = CurFD->getAttr<TargetAttr>()) { assert(getTarget().getTriple().isX86() && "Unsupported target"); |