Make hsc_alignment work in clang
authorBartosz Nitka <bnitka@fb.com>
Wed, 15 Mar 2017 21:52:36 +0000 (17:52 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 15 Mar 2017 21:52:36 +0000 (17:52 -0400)
commitd7e49a6d90dbd3d8d0bbace9410fe8411a1c77bb
tree191e7f9515cc903dd06233c9147622d46ffb7720
parentdf6b31d701f8292c3845292004122b5e72f95cad
Make hsc_alignment work in clang

Summary:
With the old definition clang gives this error:
```
error: '(anonymous struct at example.cpp:15:3)'
  cannot be defined in a type specifier
```
This makes it work under clang.

Test Plan:
Test with https://godbolt.org/g/kIBwyP and look at the
assembly.

Reviewers: O25 HSC2HS, hvr, austin, bgamari, mpickering

Reviewed By: bgamari

Subscribers: simonmar

Differential Revision: https://phabricator.haskell.org/D3346
template-hsc.h