Include intrin.h before windows.h as a workaround for the x64 self-host

On x64, windows.h doesn't include intrin.h for intrinsics.  It just
declares them in the global namespace and uses them, expecting the
compiler to lower it as a builtin.  We basically need to do this in
clang, eventually.

llvm-svn: 208023
This commit is contained in:
Reid Kleckner 2014-05-06 00:57:33 +00:00
parent 1b1ec8bfe2
commit 64c75a59c9
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@
using namespace llvm;
#if defined(_MSC_VER)
#include <Intrin.h>
#include <windows.h>
#undef MemoryFence
#endif