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 | d574ac2f4de2fcf868256672d598800a80aa3530 (patch) | |
tree | 5780446f0e4fe0c8470a4233d226f33c2eeb8a0d /clang/lib/Tooling/JSONCompilationDatabase.cpp | |
parent | 387ffe7d4bf36388dc9063c40878f1d68c450ba3 (diff) | |
download | bcm5719-llvm-d574ac2f4de2fcf868256672d598800a80aa3530.tar.gz bcm5719-llvm-d574ac2f4de2fcf868256672d598800a80aa3530.zip |
Fix the definition of JSONAnchorSource. MSVC mangles variable symbols, and "volatile" affects.
llvm-svn: 162550
Diffstat (limited to 'clang/lib/Tooling/JSONCompilationDatabase.cpp')
-rw-r--r-- | clang/lib/Tooling/JSONCompilationDatabase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Tooling/JSONCompilationDatabase.cpp b/clang/lib/Tooling/JSONCompilationDatabase.cpp index c7cc38a31f4..1c3cd8427c2 100644 --- a/clang/lib/Tooling/JSONCompilationDatabase.cpp +++ b/clang/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, |