diff options
author | Anna Zaks <ganna@apple.com> | 2012-11-03 02:54:16 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-11-03 02:54:16 +0000 |
commit | fadcd5d5bbe1bfc1c6b8d819cc2242f780a49fec (patch) | |
tree | b4904c9e7467fc6aaa367eed2338750ad2ac18d7 /lib/Analysis/AnalysisDeclContext.cpp | |
parent | b355be838a22a511d078504b2277f70aea52ca85 (diff) |
[analyzer] add LocationContext::inTopFrame() helper.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AnalysisDeclContext.cpp')
-rw-r--r-- | lib/Analysis/AnalysisDeclContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/AnalysisDeclContext.cpp b/lib/Analysis/AnalysisDeclContext.cpp index e17090f799..e7df0a813b 100644 --- a/lib/Analysis/AnalysisDeclContext.cpp +++ b/lib/Analysis/AnalysisDeclContext.cpp @@ -355,6 +355,10 @@ const StackFrameContext *LocationContext::getCurrentStackFrame() const { return NULL; } +bool LocationContext::inTopFrame() const { + return getCurrentStackFrame()->inTopFrame(); +} + bool LocationContext::isParentOf(const LocationContext *LC) const { do { const LocationContext *Parent = LC->getParent(); |