[llvm-commits] [llvm] r128441 - /llvm/trunk/lib/MC/MCDisassembler/Disassembler.cpp
Francois Pichet
pichet2000 at gmail.com
Mon Mar 28 17:30:01 PDT 2011
Author: fpichet
Date: Mon Mar 28 19:30:01 2011
New Revision: 128441
URL: http://llvm.org/viewvc/llvm-project?rev=128441&view=rev
Log:
Fix the MSVC build.
Modified:
llvm/trunk/lib/MC/MCDisassembler/Disassembler.cpp
Modified: llvm/trunk/lib/MC/MCDisassembler/Disassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/Disassembler.cpp?rev=128441&r1=128440&r2=128441&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/Disassembler.cpp (original)
+++ llvm/trunk/lib/MC/MCDisassembler/Disassembler.cpp Mon Mar 28 19:30:01 2011
@@ -160,7 +160,11 @@
std::string p;
p = OS.str();
+#ifdef LLVM_ON_WIN32
+ sprintf(OutString, "%s", p.c_str());
+#else
snprintf(OutString, OutStringSize, "%s", p.c_str());
+#endif
return Size;
}
More information about the llvm-commits
mailing list