diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-08-24 10:39:28 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-08-24 10:39:28 +0000 |
commit | 916978adb6eb36b06668a98ba7a63fbde05840ca (patch) | |
tree | b0d1c118047a29420b1feecbe0d815d2fc7cf903 /lib/Tooling/JSONCompilationDatabase.cpp | |
parent | 3d1125b27e8006385a830f5b3748b7b44d227b4c (diff) |
Fix the definition of JSONAnchorSource. MSVC mangles variable symbols, and "volatile" affects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/JSONCompilationDatabase.cpp')
-rw-r--r-- | lib/Tooling/JSONCompilationDatabase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Tooling/JSONCompilationDatabase.cpp b/lib/Tooling/JSONCompilationDatabase.cpp index c7cc38a31f..1c3cd8427c 100644 --- a/lib/Tooling/JSONCompilationDatabase.cpp +++ b/lib/Tooling/JSONCompilationDatabase.cpp @@ -129,7 +129,7 @@ X("json-compilation-database", "Reads JSON formatted compilation databases"); // 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, |