Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit dd478af

Browse files
author
George Karpenkov
committed
[analyzer] Removing unused stored field.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317070 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 93dccb5 commit dd478af

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/clang/Analysis/AnalysisDeclContext.h

-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ class AnalysisDeclContextManager {
410410
typedef llvm::DenseMap<const Decl *, std::unique_ptr<AnalysisDeclContext>>
411411
ContextMap;
412412

413-
ASTContext &ASTCtx;
414413
ContextMap Contexts;
415414
LocationContextManager LocContexts;
416415
CFG::BuildOptions cfgBuildOptions;

lib/Analysis/AnalysisDeclContext.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ AnalysisDeclContextManager::AnalysisDeclContextManager(
6868
bool addInitializers, bool addTemporaryDtors, bool addLifetime,
6969
bool addLoopExit, bool synthesizeBodies, bool addStaticInitBranch,
7070
bool addCXXNewAllocator, CodeInjector *injector)
71-
: ASTCtx(ASTCtx), Injector(injector), FunctionBodyFarm(ASTCtx, injector),
71+
: Injector(injector), FunctionBodyFarm(ASTCtx, injector),
7272
SynthesizeBodies(synthesizeBodies) {
7373
cfgBuildOptions.PruneTriviallyFalseEdges = !useUnoptimizedCFG;
7474
cfgBuildOptions.AddImplicitDtors = addImplicitDtors;

0 commit comments

Comments
 (0)