]> granicus.if.org Git - clang/commit
Always allocate room for a ModuleDecl on the TranslationUnitDecl.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 5 Sep 2017 00:50:19 +0000 (00:50 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 5 Sep 2017 00:50:19 +0000 (00:50 +0000)
commit50f89d67d8772dc6e2e4abb524d8550aacbda89a
treebc2edcd28b8fc197045c8abd239a59e1af11d620
parentc55c0db172fe48c0ee64bd86d2cb35c3e38f328b
Always allocate room for a ModuleDecl on the TranslationUnitDecl.

Sometimes we create the ASTContext and thus the TranslationUnitDecl before we know the LangOptions. This should fix the asan buildbot failures after r312467.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312506 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclBase.cpp