[all-commits] [llvm/llvm-project] f4d791: [CodeGen][ObjC] Extend lifetime of ObjC pointers p...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Fri Mar 6 16:47:18 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f4d791f8332c2bb7e89849d0fe4ef48cb0a23229
      https://github.com/llvm/llvm-project/commit/f4d791f8332c2bb7e89849d0fe4ef48cb0a23229
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2020-03-06 (Fri, 06 Mar 2020)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGenObjC/os_log.m

  Log Message:
  -----------
  [CodeGen][ObjC] Extend lifetime of ObjC pointers passed to calls to
__builtin_os_log_format

This is needed to keep all the objects, including temporaries returned
by function calls, written to the buffer alive until os_log_pack_send is
called.

rdar://problem/60105410




More information about the All-commits mailing list