[all-commits] [llvm/llvm-project] 7c57a9: Modules: Simplify how DisableGeneratingGlobalModul...
Duncan P. N. Exon Smith via All-commits
all-commits at lists.llvm.org
Thu May 13 10:40:07 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7c57a9bd7d4c976b7a824472c427433359200e02
https://github.com/llvm/llvm-project/commit/7c57a9bd7d4c976b7a824472c427433359200e02
Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
Date: 2021-05-13 (Thu, 13 May 2021)
Changed paths:
M clang/lib/Frontend/CompilerInstance.cpp
Log Message:
-----------
Modules: Simplify how DisableGeneratingGlobalModuleIndex is set, likely NFC
DisableGeneratingGlobalModuleIndex was being set by
CompilerInstance::findOrCompileModuleAndReadAST most of (but not all of)
the times it returned `nullptr` as a "normal" failure. Pull that up to
the caller, CompilerInstance::loadModule, to simplify the code. This
resolves a number of FIXMEs added during the refactoring in
5cca622310c10fdf6f921b6cce26f91d9f14c762.
The extra cases where this is set are all some version of a fatal error,
and the only client of the field, shouldBuildGlobalModuleIndex, seems
to be unreachable in that case. Even if there is some corner case where
this has an effect, it seems like the right/consistent behaviour.
Differential Revision: https://reviews.llvm.org/D101672
More information about the All-commits
mailing list