Commit 2ad794c5 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed type resolving for ObjC ptr receiver types in objc_msg_send expressions.

parent 55f9645c
......@@ -662,7 +662,7 @@ bool ResolveExpression::visit(ObjCMessageExpressionAST *ast)
// [NSObject description];
binding = _context.lookupType(clazz);
} else if (PointerType *ptrTy = ty->asPointerType()) {
if (NamedType *namedTy = ptrTy->asNamedType()) {
if (NamedType *namedTy = ptrTy->elementType()->asNamedType()) {
// dynamic access, e.g.:
// NSObject *obj = ...; [obj release];
binding = _context.lookupType(namedTy->name(), result.scope());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment