From: Rafael Espindola Date: Thu, 16 Jan 2014 05:09:32 +0000 (+0000) Subject: Attempt to fix the MSVC build. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=da47fb533ae767e562b705de7a09c0795b7c2941;p=oota-llvm.git Attempt to fix the MSVC build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199352 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp b/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp index 60adc9b383d..5878e592834 100644 --- a/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp @@ -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 } }