Revert r302965 - [modules] When creating a declaration, cache its owning
authorDaniel Jasper <djasper@google.com>
Mon, 15 May 2017 07:51:10 +0000 (07:51 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 15 May 2017 07:51:10 +0000 (07:51 +0000)
commit89f9ad8636c672eb26e881f0f9f31f7de8c303a0
treef72d01e8924b0206ceca2284f28c79cfca738e15
parent06c61e863962f56ca0a8213eb3e2fa0666f5c53e
Revert r302965 - [modules] When creating a declaration, cache its owning
module immediately

Also revert dependent r302969. This is leading to crashes.
Will provide more details reproduction instructions to Richard.

llvm-svn: 303037
clang/include/clang/AST/Decl.h
clang/include/clang/AST/DeclBase.h
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/ASTDumper.cpp
clang/lib/AST/Decl.cpp
clang/lib/AST/DeclBase.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaLookup.cpp