[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)
commit48566aaab461e014dc8350c2ddd6012e34ffe434
treecc19a82f86b893a4cf0512432251b747a7a750dc
parentd98a0a362fbe004be2954857551c0274b09bd635
[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

llvm-svn: 362521
clang/lib/CodeGen/CGObjC.cpp
clang/test/CodeGenObjC/convert-messages-to-runtime-calls.m
clang/test/CodeGenObjC/objc-alloc-init.m