llvm-project/clang/lib/Serialization
Ben Langmuir 9b1e442e67 [Modules] Early-exit if ReadOptionsBlock fails to avoid crashing
If we didn't tell ReadOptionsBlock to allow failures then we can't
assume that the stream is not in the middle of a block if it returns
out-of-date. This was causing a crash when we tried to continue reading.

Also, it's just generally a good idea to early-exit if we're doing
implicit module builds, since we will want to immediately rebuild this
module anyway and there's no reason to waste time continuing after
failure.

rdar://problem/24114938

llvm-svn: 260563
2016-02-11 18:54:02 +00:00
..
ASTCommon.cpp [OPENMP] Rename OMPCapturedFieldDecl to OMPCapturedExprDecl, NFC. 2016-02-11 05:35:55 +00:00
ASTCommon.h Only instantiate a default argument once. 2016-01-06 22:34:54 +00:00
ASTReader.cpp [Modules] Early-exit if ReadOptionsBlock fails to avoid crashing 2016-02-11 18:54:02 +00:00
ASTReaderDecl.cpp [OPENMP] Rename OMPCapturedFieldDecl to OMPCapturedExprDecl, NFC. 2016-02-11 05:35:55 +00:00
ASTReaderInternals.h Re-commit r246497 (and dependent changes r246524 and r246521), reverted in 2015-09-01 20:35:42 +00:00
ASTReaderStmt.cpp [OpenMP] Parsing + sema for target parallel for directive. 2016-02-03 15:46:42 +00:00
ASTWriter.cpp [modules] Compress files embedded into a .pcm file, to reduce the disk usage of -fembed-all-files mode. 2016-02-06 02:06:43 +00:00
ASTWriterDecl.cpp [OPENMP] Rename OMPCapturedFieldDecl to OMPCapturedExprDecl, NFC. 2016-02-11 05:35:55 +00:00
ASTWriterStmt.cpp [OpenMP] Parsing + sema for target parallel for directive. 2016-02-03 15:46:42 +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 Introduce module file extensions to piggy-back data onto module files. 2015-11-03 18:33:07 +00:00
GlobalModuleIndex.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 19:38:18 +00:00
Module.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 19:38:18 +00:00
ModuleFileExtension.cpp Introduce module file extensions to piggy-back data onto module files. 2015-11-03 18:33:07 +00:00
ModuleManager.cpp Fix use-after-free in ModuleManager 2015-10-21 23:12:45 +00:00
MultiOnDiskHashTable.h Roll-back r250822. 2015-10-20 13:23:58 +00:00