diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-09-19 17:17:36 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-09-19 17:17:36 +0000 |
| commit | 883f40b7592cac3f9509a40cf144cdc559f13be0 (patch) | |
| tree | acb3be7862cf0607386ff681d0899b2f4c4d393f /lib/AST | |
| parent | 668007a2dec842f36eef4b27bb4b18dff3111855 (diff) | |
Vendor import of clang 9.0.0 release r372316:vendor/clang/clang-release_900-r372316vendor/clang-90
Notes
Notes:
svn path=/vendor/clang/dist-release_90/; revision=352524
svn path=/vendor/clang/clang-release_900-r372316/; revision=352525; tag=vendor/clang/clang-release_900-r372316
Diffstat (limited to 'lib/AST')
| -rw-r--r-- | lib/AST/Decl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 21cf9da18a8b..aa74da006174 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -3332,7 +3332,8 @@ SourceRange FunctionDecl::getExceptionSpecSourceRange() const { /// an externally visible symbol, but "extern inline" will not create an /// externally visible symbol. bool FunctionDecl::isInlineDefinitionExternallyVisible() const { - assert((doesThisDeclarationHaveABody() || willHaveBody()) && + assert((doesThisDeclarationHaveABody() || willHaveBody() || + hasAttr<AliasAttr>()) && "Must be a function definition"); assert(isInlined() && "Function must be inline"); ASTContext &Context = getASTContext(); |
