diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2019-08-29 23:14:08 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2019-08-29 23:14:08 +0000 |
commit | 4625c18b5f4841c1f853d33cce0fa5b6abf74399 (patch) | |
tree | dd8514d0d86f07e79187eed1800cefc17e0ed5ac /llvm/lib/Object/WindowsResource.cpp | |
parent | 864fd44d8f9ebf771d80cf49f59acb693a7978ea (diff) | |
download | llvm-4625c18b5f4841c1f853d33cce0fa5b6abf74399.zip llvm-4625c18b5f4841c1f853d33cce0fa5b6abf74399.tar.gz llvm-4625c18b5f4841c1f853d33cce0fa5b6abf74399.tar.bz2 |
[Modules] Make ReadModuleMapFileBlock errors reliable
This prevents a crash when an error should be emitted instead.
During implicit module builds, there are cases where ReadASTCore is called with
ImportedBy set to nullptr, which breaks expectations in ReadModuleMapFileBlock,
leading to crashes.
Fix this by improving ReadModuleMapFileBlock to handle ImportedBy correctly.
This only happens non deterministically in the wild, when the underlying file
system changes while concurrent compiler invocations use implicit modules,
forcing rebuilds which see an inconsistent filesystem state. That said, there's
no much to do w.r.t. writing tests here.
rdar://problem/48828801
llvm-svn: 370422
Diffstat (limited to 'llvm/lib/Object/WindowsResource.cpp')
0 files changed, 0 insertions, 0 deletions