forked from OSchip/llvm-project
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:
parent
1b1ec8bfe2
commit
64c75a59c9
|
@ -17,6 +17,7 @@
|
|||
using namespace llvm;
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <Intrin.h>
|
||||
#include <windows.h>
|
||||
#undef MemoryFence
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue