diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-12-08 14:31:58 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-12-08 14:31:58 +0000 |
| commit | 52c5eb8567b3104e357ad43927aa605be3246c6f (patch) | |
| tree | ec82879cc87188bcca0827988cc7d69143e00ee4 /lib/AST/ASTContext.cpp | |
| parent | 6ae2bfad8ae4459e286c88b4c5b5584c2577b317 (diff) | |
Notes
Diffstat (limited to 'lib/AST/ASTContext.cpp')
| -rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index c085f52cae31..648fa9f0fbc6 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -9734,6 +9734,10 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) { return true; if (const auto *FD = dyn_cast<FunctionDecl>(D)) { + // Multiversioned functions always have to be emitted, because they are used + // by the resolver. + if (FD->isMultiVersion()) + return true; // Forward declarations aren't required. if (!FD->doesThisDeclarationHaveABody()) return FD->doesDeclarationForceExternallyVisibleDefinition(); |
