I don’t use the vs generator and I don’t explicitly pass enable assertions = off (isn’t that the default for release builds)?  I do build release builds with no debug info though.<br><br>Note that clang-cl probably doesn’t have this bug, so the check should probably be _MSC_VER && !__clang__<br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 24, 2018 at 1:34 PM Stella Stamenova 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">stella.stamenova added a comment.<br>
<br>
I don't know if it impacts all shipping versions since we only test with the latest versions. I would suspect that you either build with assertions set to ON or you include debug information when you build. Here's the CMAKE command line that reproduces this:<br>
<br>
-DCMAKE_BUILD_TYPE=Release -G "Visual Studio 15 2017 Win64" -Thost=x64 -DLLVM_ENABLE_ASSERTIONS=OFF<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D49753" rel="noreferrer" target="_blank">https://reviews.llvm.org/D49753</a><br>
<br>
<br>
<br>
</blockquote></div>