forked from OSchip/llvm-project
Added investigate patch for an occasionally failing assertion (heisenbug?)
llvm-svn: 49193
This commit is contained in:
parent
124cce86fc
commit
d1a2efadba
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue