[PATCH] D30691: [analyzer] Support for naive cross translational unit analysis
Whisperity via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 25 06:11:21 PDT 2017
whisperity added inline comments.
================
Comment at: lib/AST/ASTContext.cpp:1497
+ auto FnUnitCacheEntry = FunctionAstUnitMap.find(MangledFnName);
+ if (FnUnitCacheEntry == FunctionAstUnitMap.end()) {
+ if (FunctionFileMap.empty()) {
----------------
danielmarjamaki wrote:
> How about replacing FunctionAstUnitMap.find() with FunctionAstUnitMap.count()?
>
`FnUnitCacheEntry` is used in line `1525`.
https://reviews.llvm.org/D30691
More information about the cfe-commits
mailing list