Fix llvm-for-windows-on-linux build after LLVM r272701.

The file is called "intrin.h". When building targeting Windows on a Linux
system, with the SDK mounted in a case-insensitive file system, "Intrin.h" will
miss clang's intrin.h header (because that's not in a case-insensitive file
system) but then find intrin.h in the Microsoft SDK. clang can't handle the
SDK's intrin.h.

https://reviews.llvm.org/D36281

llvm-svn: 309980
This commit is contained in:
Nico Weber 2017-08-03 20:10:47 +00:00
parent aecadf6952
commit b364d67ef2

View File

@ -17,9 +17,9 @@
using namespace llvm;
#if defined(_MSC_VER)
#include <Intrin.h>
#include <intrin.h>
// We must include windows.h after Intrin.h.
// We must include windows.h after intrin.h.
#include <windows.h>
#undef MemoryFence
#endif