]> granicus.if.org Git - clang/commit
[arcmt] For:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 15 Jul 2011 21:11:23 +0000 (21:11 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 15 Jul 2011 21:11:23 +0000 (21:11 +0000)
commitf55a869ba4c651943715d13d9b9c50a2e752a6ac
treeb7d8706ff091c6be17e529d45833cd2daf2622bc
parentfc71ac810f6bb4fd37b8558ad1ef834f9119ab42
[arcmt] For:

id x = ...
@try {
 ...
} @finally {
 [x release];
}

Migrator will drop the release. It's better to change it to "x = 0" in a @finally to avoid leak when exception is thrown.

rdar://9398256

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