[PATCH] D109387: [NFC][AIX] Check for typedef properly when getting preferred type align

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 7 13:56:22 PDT 2021


rjmccall added a comment.

Oh, no, I don't think this is NFC.  It seems very likely that there's some case where the behavior is distinguishable.  Maybe a typedef of a record with an alignment attribute?

  __attribute__((aligned(2), packed)) struct float4 { float x, y, z, w; };
  typedef struct float4 float4typedef;
  
  struct {
    float4typedef field; // presumably still eligible for alignment upgrade
  };


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109387/new/

https://reviews.llvm.org/D109387



More information about the cfe-commits mailing list