[PATCH] D95989: [ASTReader] Always rebuild a cached module that has errors
Ben Barham via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 3 17:16:45 PST 2021
bnbarham created this revision.
bnbarham added a reviewer: akyrtzi.
bnbarham requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
A module in the cache with an error should just be a cache miss. If
allowing errors (with -fallow-pcm-with-compiler-errors), a rebuild is
needed so that the appropriate diagnostics are output and in case search
paths have changed. If not allowing errors, the module was built
*allowing* errors and thus should be rebuilt regardless.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95989
Files:
clang/lib/Serialization/ASTReader.cpp
clang/test/Modules/Inputs/error.h
clang/test/Modules/Inputs/error/error.h
clang/test/Modules/Inputs/error/module.modulemap
clang/test/Modules/Inputs/module.map
clang/test/Modules/load-module-with-errors.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95989.321270.patch
Type: text/x-patch
Size: 5440 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210204/041808f3/attachment.bin>
More information about the cfe-commits
mailing list