Make sure a module file with errors produced via '-fallow-pcm-with-compiler-errors...
authorArgyrios Kyrtzidis <kyrtzidis@apple.com>
Mon, 8 Feb 2021 08:24:31 +0000 (00:24 -0800)
committerArgyrios Kyrtzidis <kyrtzidis@apple.com>
Tue, 9 Feb 2021 00:10:39 +0000 (16:10 -0800)
commita8cb39bab04c317c9886ec3a332f3b70ce27ae4f
treea2f4b69ee32301212ba97978e7fc3133dc8eebfd
parent1dab94f9ede5d506d6ff9c61448a8e20d43e05a7
Make sure a module file with errors produced via '-fallow-pcm-with-compiler-errors' can be loaded when using implicit modules

A module with errors would be marked as out-of-date, then the `compilerModule` action would produce it, but due to the error it would be treated as failure and the resulting PCM would not get used.

rdar://74087062

Differential Revision: https://reviews.llvm.org/D96246
clang/include/clang/Serialization/ASTReader.h
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Serialization/ASTReader.cpp
clang/test/Modules/load-module-with-errors.m