]> granicus.if.org Git - clang/commit
IRgen: Assignment to Objective-C properties shouldn't reload the value (which
authorDaniel Dunbar <daniel@zuster.org>
Tue, 29 Jun 2010 22:00:45 +0000 (22:00 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 29 Jun 2010 22:00:45 +0000 (22:00 +0000)
commitd7f7d0895dc43db20c43112a24684f11eed305de
treec9f1793492a1d8354c6125d1c49687a3e5e37935
parente49f2adebee758e5ef0d7ef1acc90c059d442f4f
IRgen: Assignment to Objective-C properties shouldn't reload the value (which
would trigger an extra method call).
 - While in the area, I also changed Clang to not emit an unnecessary load from
   'x' in cases like 'y = (x = 1)'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107210 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/assign.c [new file with mode: 0644]
test/CodeGen/object-size.c
test/CodeGenCXX/member-init-assignment.cpp
test/CodeGenObjC/assign.m [new file with mode: 0644]