diff options
author | Justin Lebar <jlebar@google.com> | 2016-10-28 16:46:39 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-10-28 16:46:39 +0000 |
commit | 0241c961e1d2984a730aa7dcdbe68ee7214cf5ce (patch) | |
tree | 85beb3e32e791d696dfbc868d82437f9fc2d3382 /clang/lib | |
parent | c9af134dda5a941c1addadf765e9360efe0e7766 (diff) | |
download | bcm5719-llvm-0241c961e1d2984a730aa7dcdbe68ee7214cf5ce.tar.gz bcm5719-llvm-0241c961e1d2984a730aa7dcdbe68ee7214cf5ce.zip |
Relax assertion in FunctionDecl::doesDeclarationForceExternallyVisibleDefinition.
Previously we were asserting that this declaration doesn't have a body
*and* won't have a body after we continue parsing. This is too strong
and breaks the go-bindings test during codegen.
llvm-svn: 285412
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 7898b075d53..f676a9d48f4 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -2933,7 +2933,7 @@ static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { /// of redeclarations of the given functions causes /// isInlineDefinitionExternallyVisible to change from false to true. bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { - assert(!doesThisDeclarationHaveABody() && !willHaveBody() && + assert(!doesThisDeclarationHaveABody() && "Must have a declaration without a body."); ASTContext &Context = getASTContext(); |