aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorBen Barham <ben_barham@apple.com>2021-04-16 17:55:39 -0700
committerArgyrios Kyrtzidis <kyrtzidis@apple.com>2021-04-16 17:57:03 -0700
commit1206b95e0703dc0a9b619a095d5564ac51c39d19 (patch)
tree13156b1f8b7d0d991ef7e3c54834e99bf3ab0cac /clang/lib/CodeGen/CodeGenFunction.cpp
parentff769dd11128839e00eea546f7e68680d9acfd77 (diff)
downloadllvm-1206b95e0703dc0a9b619a095d5564ac51c39d19.zip
llvm-1206b95e0703dc0a9b619a095d5564ac51c39d19.tar.gz
llvm-1206b95e0703dc0a9b619a095d5564ac51c39d19.tar.bz2
[ASTReader] Only mark module out of date if not already compiled
If a module contains errors (ie. it was built with -fallow-pcm-with-compiler-errors and had errors) and was from the module cache, it is marked as out of date - see a2c1054c303f20be006e9ef20739dbb88bd9ae02. When a module is imported multiple times in the one compile, this caused it to be recompiled each time - removing the existing buffer from the module cache and replacing it. This results in various errors further down the line. Instead, only mark the module as out of date if it isn't already finalized in the module cache. Reviewed By: akyrtzi Differential Revision: https://reviews.llvm.org/D100619
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions