<div dir="rtl"><div dir="ltr">/W3 was probably cached from the previous build.</div><div dir="ltr"><br></div><div dir="ltr">So should we disable <span style="color:rgb(80,0,80);font-size:12.8000001907349px">C4324</span><span style="color:rgb(80,0,80);font-size:12.8000001907349px"> or fix (how?) the AlignOf?</span></div><div dir="ltr"><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-04-16 17:34 GMT+03:00 Aaron Ballman <span dir="ltr"><<a href="mailto:aaron@aaronballman.com" target="_blank">aaron@aaronballman.com</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It seems that in order to trigger this, you have to have done a clean<br>
cmake build, as I am now seeing the same warnings you are.<br>
<span class="HOEnZb"><font color="#888888"><br>
~Aaron<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, Apr 16, 2015 at 10:16 AM, Aaron Ballman <<a href="mailto:aaron@aaronballman.com">aaron@aaronballman.com</a>> wrote:<br>
> On Thu, Apr 16, 2015 at 10:03 AM, Yaron Keren <<a href="mailto:yaron.keren@gmail.com">yaron.keren@gmail.com</a>> wrote:<br>
>> It is same in the IDE and command line, Release or Debug (unthreaded), 32<br>
>> bit.<br>
>> The warning is:<br>
>><br>
>>   PPMacroExpansion.cpp<br>
>> c:\llvm\include\llvm/Support/AlignOf.h(25): warning C4324:<br>
>> 'llvm::AlignmentCalcImpl<T>' : structure was padded due to<br>
>> __declspec(align()) [c:\llvm\msvc\tools\clang\lib\Lex\clangLex.vcxproj]<br>
>>           with<br>
>>           [<br>
>>               T=clang::SrcMgr::ContentCache<br>
>>           ] (c:\llvm\tools\clang\lib\Lex\PPCaching.cpp)<br>
>>           c:\llvm\include\llvm/Support/AlignOf.h(40) : see reference to<br>
>> class template instantiation 'llvm::AlignmentC<br>
>>   alcImpl<T>' being compiled<br>
>>           with<br>
>>           [<br>
>>               T=clang::SrcMgr::ContentCache<br>
>>           ]<br>
>>           c:\llvm\tools\clang\include\clang/Basic/SourceManager.h(225) : see<br>
>> reference to class template instantiation<br>
>>    'llvm::AlignOf<clang::SrcMgr::ContentCache>' being compiled<br>
>><br>
>> referring to SourceManager.h(225):<br>
>><br>
>>   static_assert(llvm::AlignOf<ContentCache>::Alignment >= 8,<br>
>>                 "ContentCache must be 8-byte aligned.");<br>
>><br>
>> And appears whenever SourceManager.h is included, a lot.<br>
>><br>
>> The compiler is Microsoft Visual Studio Ultimate 2013,  Version<br>
>> 12.0.31101.00 Update 4.<br>
>><br>
>> I'll try threaded build now.<br>
><br>
> I will do a clean rebuild from scratch; I wonder if the reason I'm not<br>
> seeing anything is because of some caching somewhere. Thank you!<br>
><br>
> ~Aaron<br>
</div></div></blockquote></div><br></div>