[all-commits] [llvm/llvm-project] 769c42: [libc++] Fix padding calculation for function refe...

A. Jiang via All-commits all-commits at lists.llvm.org
Tue Jun 3 08:55:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 769c42f4a552a75c8c38870ddc1b50d2ea874e4e
      https://github.com/llvm/llvm-project/commit/769c42f4a552a75c8c38870ddc1b50d2ea874e4e
  Author: A. Jiang <de34 at live.cn>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M libcxx/include/__memory/compressed_pair.h
    M libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/pointer_deleter.pass.cpp

  Log Message:
  -----------
  [libc++] Fix padding calculation for function reference types (#142125)

#109028 caused `sizeof` to be sometimes applied to function reference
types, which makes a program ill-formed. This PR handles reference types
by specializations to prevent such bogus `sizeof` expression to be
instantiated.

Fixes #142118.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list