Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2013 19:08:11 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252587 - head/contrib/llvm/tools/clang/lib/Sema
Message-ID:  <201307031908.r63J8B9r079824@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Wed Jul  3 19:08:10 2013
New Revision: 252587
URL: http://svnweb.freebsd.org/changeset/base/252587

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

Modified:
  head/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp

Modified: head/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp	Wed Jul  3 18:53:36 2013	(r252586)
+++ head/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp	Wed Jul  3 19:08:10 2013	(r252587)
@@ -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() {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307031908.r63J8B9r079824>