svn commit: r252901 - stable/9/contrib/llvm/tools/clang/lib/Sema

Dimitry Andric dim at FreeBSD.org
Sat Jul 6 22:51:56 UTC 2013


Author: dim
Date: Sat Jul  6 22:51:56 2013
New Revision: 252901
URL: http://svnweb.freebsd.org/changeset/base/252901

Log:
  MFC r252587:
  
  Pull in r185446 from clang trunk:
  
   Fix to PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout.
  
  Reported by:	glebius

Modified:
  stable/9/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp
Directory Properties:
  stable/9/contrib/llvm/   (props changed)
  stable/9/contrib/llvm/tools/clang/   (props changed)

Modified: stable/9/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp
==============================================================================
--- stable/9/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp	Sat Jul  6 22:39:17 2013	(r252900)
+++ stable/9/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp	Sat Jul  6 22:51:56 2013	(r252901)
@@ -10296,7 +10296,8 @@ void Sema::ActOnTagFinishDefinition(Scop
     Tag->setTopLevelDeclInObjCContainer();
 
   // Notify the consumer that we've defined a tag.
-  Consumer.HandleTagDeclDefinition(Tag);
+  if (!Tag->isInvalidDecl())
+    Consumer.HandleTagDeclDefinition(Tag);
 }
 
 void Sema::ActOnObjCContainerFinishDefinition() {


More information about the svn-src-stable-9 mailing list