[PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 22 02:57:33 PDT 2016


hubert.reinterpretcast created this revision.
hubert.reinterpretcast added reviewers: aaron.ballman, faisalv, rsmith.
hubert.reinterpretcast added a subscriber: cfe-commits.

This change fixes issues with `LLVM_CONSTEXPR` functions and `TrailingObjects::FixedSizeStorage`. In particular, some of the functions marked `LLVM_CONSTEXPR` used by `FixedSizeStorage` were not implemented such that they evaluate successfully as part of a constant expression despite constant arguments.

This change also implements a more traditional template-meta path to accommodate MSVC.

https://reviews.llvm.org/D22668

Files:
  include/llvm/Support/AlignOf.h
  include/llvm/Support/MathExtras.h
  include/llvm/Support/TrailingObjects.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22668.65041.patch
Type: text/x-patch
Size: 5547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160722/595a0fba/attachment-0001.bin>


More information about the cfe-commits mailing list