diff options
author | Anna Zaks <ganna@apple.com> | 2012-09-06 23:30:29 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-09-06 23:30:29 +0000 |
commit | 1edeed3b0fe01fb07a769bd1acc2ce2dc9ec431d (patch) | |
tree | 6f9f036c7ebcf5f98cd1dc05ac643b3ae56d76a5 /include/clang/Analysis/ProgramPoint.h | |
parent | 817ce3dd26590bf3f099fb82d9b6fcc43e8a7ee9 (diff) |
[analyzer] Assert that StmtPoint should be created with a non-null Stmt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/ProgramPoint.h')
-rw-r--r-- | include/clang/Analysis/ProgramPoint.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h index e66022c876..081c29fa26 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -213,7 +213,9 @@ class StmtPoint : public ProgramPoint { public: StmtPoint(const Stmt *S, const void *p2, Kind k, const LocationContext *L, const ProgramPointTag *tag) - : ProgramPoint(S, p2, k, L, tag) {} + : ProgramPoint(S, p2, k, L, tag) { + assert(S); + } const Stmt *getStmt() const { return (const Stmt*) getData1(); } |