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 | 772ee1ebad378c78c48a9be09c51ae0f87d5cccb (patch) | |
tree | a76da71a65294e55a48bad87578304780c1dd35c | |
parent | a2f970baa66f2b6689c63831145e03b2e6a40aca (diff) | |
download | bcm5719-llvm-772ee1ebad378c78c48a9be09c51ae0f87d5cccb.tar.gz bcm5719-llvm-772ee1ebad378c78c48a9be09c51ae0f87d5cccb.zip |
[analyzer] Assert that StmtPoint should be created with a non-null Stmt.
llvm-svn: 163358
-rw-r--r-- | clang/include/clang/Analysis/ProgramPoint.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/Analysis/ProgramPoint.h b/clang/include/clang/Analysis/ProgramPoint.h index e66022c876d..081c29fa267 100644 --- a/clang/include/clang/Analysis/ProgramPoint.h +++ b/clang/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(); } |