[llvm] r199352 - Attempt to fix the MSVC build.
Rafael Espindola
rafael.espindola at gmail.com
Wed Jan 15 21:09:32 PST 2014
Author: rafael
Date: Wed Jan 15 23:09:32 2014
New Revision: 199352
URL: http://llvm.org/viewvc/llvm-project?rev=199352&view=rev
Log:
Attempt to fix the MSVC build.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp?rev=199352&r1=199351&r2=199352&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp Wed Jan 15 23:09:32 2014
@@ -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
}
}
More information about the llvm-commits
mailing list