[CodeGen][ObjC] Don't extend lifetime of ObjC pointers passed to calls
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 11 Mar 2020 05:01:45 +0000 (22:01 -0700)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 11 Mar 2020 05:10:32 +0000 (22:10 -0700)
commit37fa9d65eaa7d8fae7e5b787c4e8ef0a982cead5
tree36a90f06dacd5e2d6e506359382708c77c047ac2
parent14a1b80e044aac1947c891525cf30521be0a79b7
[CodeGen][ObjC] Don't extend lifetime of ObjC pointers passed to calls
to __builtin_os_log_format if ARC isn't enabled

Fixes a bug introduced in this commit:
https://github.com/llvm/llvm-project/commit/f4d791f8332c2bb7e89849d0fe4ef48cb0a23229

rdar://problem/60301219
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGenObjC/os_log.m