]> granicus.if.org Git - clang/commit
Only perform the null-initialization of an aggregate result of a message
authorJohn McCall <rjmccall@apple.com>
Sat, 14 May 2011 21:12:11 +0000 (21:12 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 14 May 2011 21:12:11 +0000 (21:12 +0000)
commitcba681af356e24ec4335bcf2b6bb6515072ace99
tree4a14349fc9fe3ffb93f5d932367adcef7d896063
parent02c5116db6a40e806534c416e0abb22b8840831e
Only perform the null-initialization of an aggregate result of a message
send if the receiver is null.  Normally it's not worthwhile to check this,
but avoiding the null-initialization is nice, and this also avoids nasty
problems where the null-initialization is visible within the call because
we use an aliased result buffer.  rdar://problem/9402992

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131366 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjCMac.cpp
test/CodeGenObjC/messages-2.m