[PATCH] D53207: Fix bug 26547 - alignof should return ABI alignment, not preferred alignment

Nicole Mazzuca via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 23 20:25:16 PDT 2018


ubsan added a comment.

> Is it possible you have LLVM and Clang checked out at different revisions? That's a common source of weird behavior, particularly in CodeGen tests.

Unfortunately no - when I don't specifically don't set the type trait kind of `__alignof` to `UETT_PreferredAlignOf`, and remove the code in `AlignOfType` to differentiate between `PreferredAlignOf` and `AlignOf`, all the tests pass again.


Repository:
  rC Clang

https://reviews.llvm.org/D53207





More information about the cfe-commits mailing list