aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Atomic.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-06-06 12:43:20 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-06-06 12:43:20 +0000
commitaaeada6c755e64cd3611e4476a2f97fb81b7f3cb (patch)
tree139b9a7a5cfcfbf28b33199f36e738d91fe97d8e /llvm/lib/Support/Atomic.cpp
parent384232766bb678254d5ad6b1ed909647c68b7eb9 (diff)
downloadllvm-aaeada6c755e64cd3611e4476a2f97fb81b7f3cb.zip
llvm-aaeada6c755e64cd3611e4476a2f97fb81b7f3cb.tar.gz
llvm-aaeada6c755e64cd3611e4476a2f97fb81b7f3cb.tar.bz2
Fix another ordering constraint with windows.h and comment about
a revers constraint that we got right (by chance). llvm-svn: 304792
Diffstat (limited to 'llvm/lib/Support/Atomic.cpp')
-rw-r--r--llvm/lib/Support/Atomic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Atomic.cpp b/llvm/lib/Support/Atomic.cpp
index 80550e2..55910c4 100644
--- a/llvm/lib/Support/Atomic.cpp
+++ b/llvm/lib/Support/Atomic.cpp
@@ -18,6 +18,8 @@ using namespace llvm;
#if defined(_MSC_VER)
#include <Intrin.h>
+
+// We must include windows.h after Intrin.h.
#include <windows.h>
#undef MemoryFence
#endif