diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-30 20:17:27 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-30 20:17:27 +0000 |
commit | c0c3f5dbc9e78aa53a86c7d5e3eeda23ddad93d6 (patch) | |
tree | 097bc258ddf308d6d5ae163c38da0ed666088c2c /lib/Analysis/BasicObjCFoundationChecks.cpp | |
parent | 036dce063aab99fa606f102c872c5dcd138806b6 (diff) |
Teach more of the static analyzer about ObjCQualifiedIdType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BasicObjCFoundationChecks.cpp')
-rw-r--r-- | lib/Analysis/BasicObjCFoundationChecks.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Analysis/BasicObjCFoundationChecks.cpp b/lib/Analysis/BasicObjCFoundationChecks.cpp index 98c7e28b74..d2a3d08b8e 100644 --- a/lib/Analysis/BasicObjCFoundationChecks.cpp +++ b/lib/Analysis/BasicObjCFoundationChecks.cpp @@ -40,10 +40,7 @@ static ObjCInterfaceType* GetReceiverType(ObjCMessageExpr* ME) { QualType X = Receiver->getType(); Type* TP = X.getTypePtr(); - // FIXME: Why can this not be a pointer type? - // assert (TP->isPointerType()); - if (!TP->isPointerType()) - return NULL; + assert (IsPointerType(X)); const PointerType* T = TP->getAsPointerType(); |