aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/ProgramPoint.h
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-03-22 21:15:16 +0000
committerJordan Rose <jordan_rose@apple.com>2013-03-22 21:15:16 +0000
commit1aa4f5019164592643bf46b7d61f15b6ef509c8e (patch)
treea447f035d95d0d1d2e2df360325defdc7756a29b /include/clang/Analysis/ProgramPoint.h
parent9317ab94bb68122ba6fc728eb73c1308fb913cd1 (diff)
[analyzer] Fix ExprEngine::ViewGraph to handle C++ initializers.
Debugging aid only, no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/ProgramPoint.h')
-rw-r--r--include/clang/Analysis/ProgramPoint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h
index 11b79a1c15..72422d8d15 100644
--- a/include/clang/Analysis/ProgramPoint.h
+++ b/include/clang/Analysis/ProgramPoint.h
@@ -475,6 +475,10 @@ public:
const LocationContext *L)
: ProgramPoint(I, PostInitializerKind, L) {}
+ const CXXCtorInitializer *getInitializer() const {
+ return static_cast<const CXXCtorInitializer *>(getData1());
+ }
+
private:
friend class ProgramPoint;
PostInitializer() {}