[all-commits] [llvm/llvm-project] 4cf072: [AIX] Use less than or equal to for some alignment...

Zarko Todorovski via All-commits all-commits at lists.llvm.org
Mon Jun 28 07:32:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cf072e7fbb02e77332fa2a6dd26a7160ee4cc2e
      https://github.com/llvm/llvm-project/commit/4cf072e7fbb02e77332fa2a6dd26a7160ee4cc2e
  Author: Zarko Todorovski <zarko at ca.ibm.com>
  Date:   2021-06-28 (Mon, 28 Jun 2021)

  Changed paths:
    M llvm/unittests/Support/AlignOfTest.cpp

  Log Message:
  -----------
  [AIX] Use less than or equal to for some alignment tests on AIX

On AIX the alignment implementation has the storage aligned to the
preferred alignment instead of the alignment of a type. Macro guard
these tests for AIX and have them pass when the "reference alignment" is
less than or equal to the alignment observed. In other words, the
alignment applied is at least as strict as the required alignment.

Reviewed By: hubert.reinterpretcast

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




More information about the All-commits mailing list