[PATCH] D29599: Clang Changes for alloc_align

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 12 23:18:03 PST 2017


ahatanak added a comment.

Can this attribute be used on c++ template methods? Is the following code valid?

  template<class T>
  struct S {
    T foo(int a)  __attribute__((alloc_align(1)));
  };


https://reviews.llvm.org/D29599





More information about the cfe-commits mailing list