llvm-project/clang/lib/Serialization
Vassil Vassilev 46afbbb210 [modules] Delay calling DeclMustBeEmitted until it's safe.
This patch implements the suggestion in D29753 that calling DeclMustBeEmitted in
the middle of deserialization should be avoided and that the actual check should
be deferred until it's safe to do so.

This patch fixes a crash when accessing the invalid redecl chains while trying
to evaluate the value of a const VarDecl that contains a function call.

Patch by Raphael Isemann (D30793)!

llvm-svn: 300110
2017-04-12 21:56:05 +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 PR29097: add an update record when we instantiate the default member 2016-08-24 21:25:37 +00:00
ASTReader.cpp [modules] Delay calling DeclMustBeEmitted until it's safe. 2017-04-12 21:56:05 +00:00
ASTReaderDecl.cpp [modules] Delay calling DeclMustBeEmitted until it's safe. 2017-04-12 21:56:05 +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 Encapsulate FPOptions and use it consistently 2017-03-27 19:17:25 +00:00
ASTWriter.cpp Modular Codegen: Separate flags for function and debug info support 2017-04-12 20:58:33 +00:00
ASTWriterDecl.cpp Modular Codegen: Separate flags for function and debug info support 2017-04-12 20:58:33 +00:00
ASTWriterStmt.cpp Encapsulate FPOptions and use it consistently 2017-03-27 19:17:25 +00:00
CMakeLists.txt Introduce module file extensions to piggy-back data onto module files. 2015-11-03 18:33:07 +00:00
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 [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ModuleManager.cpp Spelling mistakes in comments. NFCI. (PR27635) 2017-03-30 14:13:19 +00:00
MultiOnDiskHashTable.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00