]> granicus.if.org Git - clang/commit
Allow reference binding of a reference of Objective-C object type to
authorDouglas Gregor <dgregor@apple.com>
Sat, 7 Aug 2010 11:51:51 +0000 (11:51 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 7 Aug 2010 11:51:51 +0000 (11:51 +0000)
commit569c3166874324c24011f8ade6978421f0d39b3c
tree90f156847f9e8e7bcf0c465b9a2a73959d0671c1
parent9021718882441dd391a1960084580d3cd19c423a
Allow reference binding of a reference of Objective-C object type to
an lvalue of another, compatible Objective-C object type (e.g., a
subclass). Introduce a new initialization sequence step kind to
describe this binding, along with a new cast kind. Fixes PR7741.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110513 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/Expr.h
include/clang/AST/Type.h
lib/AST/ASTContext.cpp
lib/AST/Expr.cpp
lib/Checker/GRExprEngine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Sema/Sema.h
lib/Sema/SemaCXXCast.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaInit.h
lib/Sema/SemaOverload.cpp
test/CodeGenObjCXX/references.mm
test/SemaObjCXX/references.mm