Added investigate patch for an occasionally failing assertion (heisenbug?)

llvm-svn: 49193
This commit is contained in:
Ted Kremenek 2008-04-03 21:44:24 +00:00
parent 124cce86fc
commit d1a2efadba
1 changed files with 5 additions and 2 deletions

View File

@ -36,9 +36,12 @@ static ObjCInterfaceType* GetReceiverType(ObjCMessageExpr* ME) {
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());
}