[all-commits] [llvm/llvm-project] 806ff3: [AIX] Check for typedef properly when getting pref...

Steven Wan via All-commits all-commits at lists.llvm.org
Wed Sep 8 13:22:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 806ff3c4a42c7393a0bbeab3dd1c0295f61ad457
      https://github.com/llvm/llvm-project/commit/806ff3c4a42c7393a0bbeab3dd1c0295f61ad457
  Author: Steven Wan <wanyu9511 at gmail.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/test/Layout/aix-power-alignment-typedef-2.cpp

  Log Message:
  -----------
  [AIX] Check for typedef properly when getting preferred type align

The current check for typedef is naive and doesn't deal with any convoluted cases. This patch makes use of the new 'AlignRequirement' enum field from 'TypeInfo' to determine whether or not this is an 'aligned' attribute on a typedef.

Reviewed By: rjmccall

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




More information about the All-commits mailing list