Attempt to fix the MSVC build.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 16 Jan 2014 05:09:32 +0000 (05:09 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 16 Jan 2014 05:09:32 +0000 (05:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199352 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp

index 60adc9b383d0d510b393362cb11d0e5535da2568..5878e592834a88706921d446ad5919afbbe33922 100644 (file)
@@ -50,7 +50,9 @@ extern "C" {
   LLVM_ATTRIBUTE_NOINLINE void __jit_debug_register_code() {
     // The noinline and the asm prevent calls to this function from being
     // optimized out.
+#if !defined(_MSC_VER)
     asm volatile("":::"memory");
+#endif
   }
 
 }