]> granicus.if.org Git - clang/commit
Use a proper lvalue-to-rvalue conversion in Objective-C++ property accessors.
authorJordan Rose <jordan_rose@apple.com>
Tue, 14 Jan 2014 17:29:00 +0000 (17:29 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 14 Jan 2014 17:29:00 +0000 (17:29 +0000)
commit37a0260a5ffaaa859412426d883151224867b81c
tree0ae10051c649609a5295336ef49e285afa377bcb
parentdfedf3016cb7eb55517ec879b7fc52f805b41e86
Use a proper lvalue-to-rvalue conversion in Objective-C++ property accessors.

Previously, the synthesized AST contained an rvalue DeclRefExpr for 'self'.
Now, it has an lvalue DeclRefExpr wrapped in an lvalue-to-rvalue
ImplicitCastExpr, which is what's generated when an ivar access is written
in the source.

No (intended) functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199225 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaObjCProperty.cpp