diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-09-29 07:02:25 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-09-29 07:02:25 +0000 |
commit | 2f041d0b12aa87f3345e5fb2e38fefba30c5bff3 (patch) | |
tree | 2e3410c729561d70f52df47e4febab33b43175f4 /include/clang/Analysis/ProgramPoint.h | |
parent | 4cd5791f4aa6deb572979bb38c1deedbc155efe0 (diff) |
Like IBOutletCollection, it only makes sense to apply the IBOutlet annotation to Objective-C object types. Fixes <rdar://problem/10142685>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140778 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 d0c6e71576..8f2b55c9a9 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -114,7 +114,9 @@ class BlockEntrance : public ProgramPoint { public: BlockEntrance(const CFGBlock *B, const LocationContext *L, const ProgramPointTag *tag = 0) - : ProgramPoint(B, BlockEntranceKind, L, tag) {} + : ProgramPoint(B, BlockEntranceKind, L, tag) { + assert(B && "BlockEntrance requires non-null block"); + } const CFGBlock *getBlock() const { return reinterpret_cast<const CFGBlock*>(getData1()); |