[all-commits] [llvm/llvm-project] 90eea5: [libc] Fix global constructor being emitted for th...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 19 09:39:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90eea57d755c570437cd8f5cf3599198997c592e
      https://github.com/llvm/llvm-project/commit/90eea57d755c570437cd8f5cf3599198997c592e
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-07-19 (Wed, 19 Jul 2023)

  Changed paths:
    M libc/src/__support/RPC/rpc.h

  Log Message:
  -----------
  [libc] Fix global constructor being emitted for the RPC client

The indirection here is for some reason causing an unnecessary
constructor. If we leave this uninitialized we will get the default
constructor which simply zero initliaizes the global. I've checked the
output and confirmed that it uses the `zeroinitializer` so this should
be safe.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list