[all-commits] [llvm/llvm-project] ecc847: Look through calls to std::addressof to compute po...

Eli Friedman via All-commits all-commits at lists.llvm.org
Wed Apr 20 11:30:32 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ecc8479a01d3bee1c145a0f7990271651db72ab0
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/test/CodeGenCXX/atomic-align.cpp

  Log Message:
  Look through calls to std::addressof to compute pointer alignment.

This is sort of a followup to D37310; that basically fixed the same
issue, but then the libstdc++ implementation of <atomic> changed. Re-fix
the the issue in essentially the same way: look through the addressof
operation to find the alignment of the underlying object.

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

More information about the All-commits mailing list