diff options
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index b2f1a356dfb..6f971b116d6 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -6313,6 +6313,8 @@ QualType Sema::CheckAddressOfOperand(Expr *op, SourceLocation OpLoc) {    }    // If the operand has type "type", the result has type "pointer to type". +  if (op->getType()->isObjCObjectType()) +    return Context.getObjCObjectPointerType(op->getType());    return Context.getPointerType(op->getType());  } | 

