[Analyzer] Give more descriptive name to BdyFrm field.

Discussion at: https://reviews.llvm.org/D39220

llvm-svn: 316617
This commit is contained in:
George Karpenkov 2017-10-25 21:49:41 +00:00
parent d3aa475988
commit 134d8473ef
2 changed files with 4 additions and 4 deletions

View File

@ -421,7 +421,7 @@ class AnalysisDeclContextManager {
/// Pointer to a factory for creating and caching implementations for common
/// methods during the analysis.
std::unique_ptr<BodyFarm> BdyFrm;
std::unique_ptr<BodyFarm> FunctionBodyFarm;
/// Flag to indicate whether or not bodies should be synthesized
/// for well-known functions.

View File

@ -305,9 +305,9 @@ AnalysisDeclContext *AnalysisDeclContextManager::getContext(const Decl *D) {
}
BodyFarm *AnalysisDeclContextManager::getBodyFarm() {
if (!BdyFrm)
BdyFrm = llvm::make_unique<BodyFarm>(ASTCtx, Injector.get());
return BdyFrm.get();
if (!FunctionBodyFarm)
FunctionBodyFarm = llvm::make_unique<BodyFarm>(ASTCtx, Injector.get());
return FunctionBodyFarm.get();
}
const StackFrameContext *