Extend the ProgramPoint to include the context information LocationContext,
which is either a stack frame context of the function or a local scope
context.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79072 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Frontend/AnalysisConsumer.cpp b/lib/Frontend/AnalysisConsumer.cpp
index 11ffdeb..16639e0 100644
--- a/lib/Frontend/AnalysisConsumer.cpp
+++ b/lib/Frontend/AnalysisConsumer.cpp
@@ -258,7 +258,7 @@
!Ctx->getSourceManager().isFromMainFile(D->getLocation()))
return;
- Mgr->setContext(D);
+ Mgr->setEntryContext(D);
// Dispatch on the actions.
for (Actions::iterator I = actions.begin(), E = actions.end(); I != E; ++I)
@@ -315,7 +315,7 @@
}
// Execute the worklist algorithm.
- Eng.ExecuteWorkList();
+ Eng.ExecuteWorkList(mgr.getEntryStackFrame());
// Release the auditor (if any) so that it doesn't monitor the graph
// created BugReporter.