[PATCH] D137458: [clang] Add __decay<T> as a builtin template

Roy Jacobson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 4 14:13:31 PDT 2022


royjacobson added a comment.

I worry about this mangling issue https://github.com/llvm/llvm-project/issues/54993.
For std::make_index_sequence that wasn't that big of a deal, since nobody really uses that as return type of (template) functions, but my guess is that enough people do things like

  template<class T>
  decay_t<T> copy(T t);

that this might become a problem here.

Also, it would be nice to have some numbers for the 'measurably faster' claim :)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137458



More information about the cfe-commits mailing list