[cfe-commits] r162550 - /cfe/trunk/lib/Tooling/JSONCompilationDatabase.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Fri Aug 24 03:39:29 PDT 2012
Author: chapuni
Date: Fri Aug 24 05:39:28 2012
New Revision: 162550
URL: http://llvm.org/viewvc/llvm-project?rev=162550&view=rev
Log:
Fix the definition of JSONAnchorSource. MSVC mangles variable symbols, and "volatile" affects.
Modified:
cfe/trunk/lib/Tooling/JSONCompilationDatabase.cpp
Modified: cfe/trunk/lib/Tooling/JSONCompilationDatabase.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/JSONCompilationDatabase.cpp?rev=162550&r1=162549&r2=162550&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/JSONCompilationDatabase.cpp (original)
+++ cfe/trunk/lib/Tooling/JSONCompilationDatabase.cpp Fri Aug 24 05:39:28 2012
@@ -129,7 +129,7 @@
// This anchor is used to force the linker to link in the generated object file
// and thus register the JSONCompilationDatabasePlugin.
-int JSONAnchorSource = 0;
+volatile int JSONAnchorSource = 0;
JSONCompilationDatabase *
JSONCompilationDatabase::loadFromFile(StringRef FilePath,
More information about the cfe-commits
mailing list