The static_assert is in a template function though, which shouldn’t get instantiated unless you create an instance of the class.  And creating that instance is ifdef’ed out.  If it fixes it just move the ifdef up, but I’m a bit confused.<br><br>Also i tested with msvc I guess that could be it<br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 26, 2018 at 7:29 AM Nico Weber via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">thakis added a comment.<br>
<br>
In <a href="https://reviews.llvm.org/D48240#1143531" rel="noreferrer" target="_blank">https://reviews.llvm.org/D48240#1143531</a>, @zturner wrote:<br>
<br>
> This whole file is supposed to be ifdefed out in this case. Is it not? I<br>
>  definitely tested this case<br>
<br>
<br>
Looking at it, it seems that the code is tested out, but the #include isn't, and that's what errors. Maybe you tested it by reconfiguring an existing cmake build dir instead of using a fresh one and were led astray by cmake's overaggressive caching of build settings?<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D48240" rel="noreferrer" target="_blank">https://reviews.llvm.org/D48240</a><br>
<br>
<br>
<br>
</blockquote></div>