[all-commits] [llvm/llvm-project] 7a3846: Only destroy static locals if they have non-trivia...

Richard Smith via All-commits all-commits at lists.llvm.org
Fri Jan 10 15:18:44 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a38468e34eeeb59e80b176b97213d205d8d9b41
      https://github.com/llvm/llvm-project/commit/7a38468e34eeeb59e80b176b97213d205d8d9b41
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-01-10 (Fri, 10 Jan 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDecl.cpp
    A clang/test/CodeGenObjC/initialize-function-static.m

  Log Message:
  -----------
  Only destroy static locals if they have non-trivial destructors.

This fixes a regression introduced in
2b4fa5348ee157b6b1a1af44d0137ca8c7a71573 that caused us to emit
shutdown-time destruction for variables with ARC ownership, using
C++-specific functions that don't exist in C implementations.




More information about the All-commits mailing list