commit | c0c3f5dbc9e78aa53a86c7d5e3eeda23ddad93d6 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Wed Apr 30 20:17:27 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Wed Apr 30 20:17:27 2008 +0000 |
tree | 097bc258ddf308d6d5ae163c38da0ed666088c2c | |
parent | 036dce063aab99fa606f102c872c5dcd138806b6 [diff] [blame] |
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
diff --git a/lib/Analysis/BasicObjCFoundationChecks.cpp b/lib/Analysis/BasicObjCFoundationChecks.cpp index 98c7e28..d2a3d08 100644 --- a/lib/Analysis/BasicObjCFoundationChecks.cpp +++ b/lib/Analysis/BasicObjCFoundationChecks.cpp
@@ -40,10 +40,7 @@ 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();