[all-commits] [llvm/llvm-project] cdd6a2: [ObjC] Copy a block to the heap if it is passed as...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Wed Jun 24 11:47:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cdd6a2788caced6b377af818154138d9983dba5f
      https://github.com/llvm/llvm-project/commit/cdd6a2788caced6b377af818154138d9983dba5f
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2020-06-24 (Wed, 24 Jun 2020)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/CodeGenObjC/arc-blocks.m

  Log Message:
  -----------
  [ObjC] Copy a block to the heap if it is passed as a variadic argument

Call maybeExtendBlockObject in DefaultVariadicArgumentPromotion so that
the block is copied to the heap when it is passed as a variadic argument
to any calls, not only to C function calls.

rdar://problem/64201532




More information about the All-commits mailing list