diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-01-30 21:40:37 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-01-30 21:40:37 +0000 |
commit | f2bda69cd26be3a63f2537a3c5965274d8b61356 (patch) | |
tree | 6602f7ca8c3b2d254e13aec5bdbfd40c11556939 /clang/lib/Sema/SemaOverload.cpp | |
parent | cf2c65aa8ee41e42fb77d35d3d2f81c79d79cf45 (diff) | |
download | bcm5719-llvm-f2bda69cd26be3a63f2537a3c5965274d8b61356.tar.gz bcm5719-llvm-f2bda69cd26be3a63f2537a3c5965274d8b61356.zip |
objc-arc: Perform null check on receiver before sending methods which
consume one or more of their arguments. If not done, this will cause a leak
as method will not consume the argument when receiver is null.
In this patch, the null path releases consumed argument.
// rdar://10444474
llvm-svn: 149279
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
0 files changed, 0 insertions, 0 deletions