aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Atomic.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-02 17:35:55 +0000
committerOwen Anderson <resistor@mac.com>2009-06-02 17:35:55 +0000
commitd8cf40372ed64ba69f8d0d7c79bebdf293dd5d1e (patch)
treee5b4f2352a5ec552b4ab53f9aa078b004287410f /lib/System/Atomic.cpp
parent8900bcc1ff60d2ce2ec55700c74814de7a603164 (diff)
Undef MemoryFence when compiling on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Atomic.cpp')
-rw-r--r--lib/System/Atomic.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/System/Atomic.cpp b/lib/System/Atomic.cpp
index 8c61ff1069..cefd0bbf55 100644
--- a/lib/System/Atomic.cpp
+++ b/lib/System/Atomic.cpp
@@ -18,6 +18,7 @@ using namespace llvm;
#if defined(_MSC_VER)
#include <windows.h>
+#undef MemoryFence
#endif
void sys::MemoryFence() {