[cfe-commits] r49193 - /cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp
Ted Kremenek
kremenek at apple.com
Thu Apr 3 14:44:24 PDT 2008
Author: kremenek
Date: Thu Apr 3 16:44:24 2008
New Revision: 49193
URL: http://llvm.org/viewvc/llvm-project?rev=49193&view=rev
Log:
Added investigate patch for an occasionally failing assertion (heisenbug?)
Modified:
cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp
Modified: cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp?rev=49193&r1=49192&r2=49193&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp (original)
+++ cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp Thu Apr 3 16:44:24 2008
@@ -36,9 +36,12 @@
if (!Receiver)
return NULL;
- assert (Receiver->getType()->isPointerType());
+ // FIXME: Cleanup
+ QualType X = Receiver->getType();
+ Type* TP = X.getTypePtr();
+ assert (TP->isPointerType());
- const PointerType* T = Receiver->getType()->getAsPointerType();
+ const PointerType* T = TP->getAsPointerType();
return dyn_cast<ObjCInterfaceType>(T->getPointeeType().getTypePtr());
}
More information about the cfe-commits
mailing list