diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-30 05:33:46 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-30 05:33:46 +0000 |
commit | 5ec56cc43895b8b78ef2480d54982e3866d9d07a (patch) | |
tree | aef6be2d7f63a1147a1d45d0d4e0586879c76ec0 /lib/Support/Annotation.cpp | |
parent | e3821c79bc5b535e4cb8ade73f5657a61c04b0a0 (diff) |
Fix the build on Cygwin. Patch by Aaron Gray.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Annotation.cpp')
-rw-r--r-- | lib/Support/Annotation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Annotation.cpp b/lib/Support/Annotation.cpp index b7780433c0..4b5b97e41f 100644 --- a/lib/Support/Annotation.cpp +++ b/lib/Support/Annotation.cpp @@ -39,7 +39,7 @@ namespace { } typedef std::map<const char*, unsigned, StrCmp> IDMapType; -static unsigned IDCounter = 0; // Unique ID counter +static volatile sys::cas_flag IDCounter = 0; // Unique ID counter // Static member to ensure initialiation on demand. static ManagedStatic<IDMapType> IDMap; |