summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2020-02-27 14:33:43 +0100
committerHans Wennborg <hans@chromium.org>2020-02-27 14:39:49 +0100
commita8684e93a347b5a7ecbb07bad40301f1699a813a (patch)
tree3e78458d00c851610120c5365be9b28151250200 /clang/lib/Serialization/ASTWriter.cpp
parent7e3ebf34eb03ddc5fefe8d4fb2ed62a195bcee0e (diff)
downloadbcm5719-llvm-a8684e93a347b5a7ecbb07bad40301f1699a813a.tar.gz
bcm5719-llvm-a8684e93a347b5a7ecbb07bad40301f1699a813a.zip
Revert "make -fmodules-codegen and -fmodules-debuginfo work also with PCHs"
This caused PR44953. See also the discussion on D74846. This reverts commit cbc9d22e49b434b6ceb2eb94b67079d02e0a7b74. (cherry picked from commit 7ea9a6e0220da36ff2fd1fbc29c2755be23e5166)
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 252853aad1f..7626827b441 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -5596,8 +5596,8 @@ void ASTRecordWriter::AddCXXDefinitionData(const CXXRecordDecl *D) {
// getODRHash will compute the ODRHash if it has not been previously computed.
Record->push_back(D->getODRHash());
- bool ModulesDebugInfo =
- Writer->Context->getLangOpts().ModulesDebugInfo && !D->isDependentType();
+ bool ModulesDebugInfo = Writer->Context->getLangOpts().ModulesDebugInfo &&
+ Writer->WritingModule && !D->isDependentType();
Record->push_back(ModulesDebugInfo);
if (ModulesDebugInfo)
Writer->ModularCodegenDecls.push_back(Writer->GetDeclRef(D));
OpenPOWER on IntegriCloud