llvm-project/clang/lib/Serialization
Vassil Vassilev 74c3e8c316 [modules] Further delay calling DeclMustBeEmitted until it's safe.
As discussed in D30793, we have some unsafe calls to isConsumerInterestedIn().
This patch implements Richard's suggestion (from the inline comment) that we
should track if we just deserialized an declaration. If we just deserialized,
we can skip the unsafe call because we know it's interesting. If we didn't just
deserialize the declaration, calling isConsumerInterestedIn() should be safe.

We tried to create a test case for this but we were not successful.

Patch by Raphael Isemann (D32499)!

llvm-svn: 303432
2017-05-19 16:46:06 +00:00
..
ASTCommon.cpp Add an explicit derived class of FunctionDecl to model deduction guides rather 2017-02-17 20:05:37 +00:00
ASTCommon.h
ASTReader.cpp [modules] Further delay calling DeclMustBeEmitted until it's safe. 2017-05-19 16:46:06 +00:00
ASTReaderDecl.cpp [modules] Further delay calling DeclMustBeEmitted until it's safe. 2017-05-19 16:46:06 +00:00
ASTReaderInternals.h Remove move constructors that are identical to the generated default move ctor. 2016-10-21 18:55:07 +00:00
ASTReaderStmt.cpp [OpenMP] Prepare sema to support combined constructs with omp distribute and omp for 2017-04-20 00:39:39 +00:00
ASTWriter.cpp [modules] Switch from inferring owning modules based on source location to 2017-05-18 02:29:20 +00:00
ASTWriterDecl.cpp [modules] Switch from inferring owning modules based on source location to 2017-05-18 02:29:20 +00:00
ASTWriterStmt.cpp [OpenMP] Prepare sema to support combined constructs with omp distribute and omp for 2017-04-20 00:39:39 +00:00
CMakeLists.txt
GeneratePCH.cpp Apply clang-tidy's performance-unnecessary-value-param to parts of clang. 2017-03-21 21:35:04 +00:00
GlobalModuleIndex.cpp Modules: Use hash of PCM content for SIGNATURE 2017-03-13 18:45:08 +00:00
Module.cpp Modules: Simplify the ModuleFile constructor; likely NFC 2017-01-29 00:39:09 +00:00
ModuleFileExtension.cpp
ModuleManager.cpp Spelling mistakes in comments. NFCI. (PR27635) 2017-03-30 14:13:19 +00:00
MultiOnDiskHashTable.h