]> granicus.if.org Git - clang/commit
[CodeGen][ObjC] Convert '[self alloc]' in a class method to a call to
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 4 Jun 2019 16:29:58 +0000 (16:29 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 4 Jun 2019 16:29:58 +0000 (16:29 +0000)
commit691328960d8cfd2a6781baf357968f4bb574171d
treed1c6bdbc07df2f28064195af8e9b799e09f860d0
parentcebf166fd825694c390652023d9f217a2252d443
[CodeGen][ObjC] Convert '[self alloc]' in a class method to a call to
'objc_alloc(self)'

Also convert '[[self alloc] init]' in a class method to a call to
'objc_alloc_init(self)'.

rdar://problem/50855121

Differential Revision: https://reviews.llvm.org/D62643

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362521 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjC.cpp
test/CodeGenObjC/convert-messages-to-runtime-calls.m
test/CodeGenObjC/objc-alloc-init.m