]> granicus.if.org Git - llvm/commitdiff
Fix llvm-for-windows-on-linux build after LLVM r272701.
authorNico Weber <nicolasweber@gmx.de>
Thu, 3 Aug 2017 20:10:47 +0000 (20:10 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 3 Aug 2017 20:10:47 +0000 (20:10 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309980 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Atomic.cpp

index 55910c489faf5248696a18c9b2cda4b085336a9c..7328a93052ccbd92f975101ad16c0ba3d14a9763 100644 (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