[all-commits] [llvm/llvm-project] 34405b: [CodeGen][ObjC] Destroy callee-destroyed arguments...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Mon Dec 28 11:52:52 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34405b41d61580ff893057784b1b19f81f66bad3
      https://github.com/llvm/llvm-project/commit/34405b41d61580ff893057784b1b19f81f66bad3
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2020-12-28 (Mon, 28 Dec 2020)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/lib/AST/Decl.cpp
    M clang/lib/CodeGen/CGObjCMac.cpp
    A clang/test/CodeGenObjC/objc-dispatch-null-check.m
    M clang/test/CodeGenObjC/strong-in-c-struct.m
    M clang/test/CodeGenObjC/weak-in-c-struct.m
    M clang/test/CodeGenObjCXX/objc-struct-cxx-abi.mm

  Log Message:
  -----------
  [CodeGen][ObjC] Destroy callee-destroyed arguments in the caller
function when the receiver is nil

Callee-destroyed arguments to a method have to be destroyed in the
caller function when the receiver is nil as the method doesn't get
executed. This fixes PR48207.

rdar://71808391

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




More information about the All-commits mailing list