]> granicus.if.org Git - clang/commit
[arcmt] Remove the "it is not safe to remove an unused 'autorelease' message" ARC
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 17 May 2012 18:16:05 +0000 (18:16 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 17 May 2012 18:16:05 +0000 (18:16 +0000)
commitb6a1b10a8d9e0405b7a0d12273623c7f4d23f7d9
tree9cbdb3e8fbe67f381059824408cce43e9ba964fa
parenteecb22b916b6bd19655515d59a01ebd0dad37ab6
[arcmt] Remove the "it is not safe to remove an unused 'autorelease' message" ARC
migration error.

This is more trouble that it is worth; autoreleasing a value without holding on it
is a valid use-case, we should not "punish" correct code for the minority of
broken/fragile programs that depend on the behavior of  -autorelease.

rdar://9914061

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ARCMigrate/TransRetainReleaseDealloc.cpp
test/ARCMT/checking.m