Teach more of the static analyzer about ObjCQualifiedIdType.
llvm-svn: 50494
diff --git a/clang/lib/Analysis/BasicObjCFoundationChecks.cpp b/clang/lib/Analysis/BasicObjCFoundationChecks.cpp
index 98c7e28..d2a3d08 100644
--- a/clang/lib/Analysis/BasicObjCFoundationChecks.cpp
+++ b/clang/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();