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 | 00d07afe981bcd5a611b7af777fda71a54d2b008 (patch) | |
| tree | 0649a4a8a0db2d14c95c14a62d08efe3c37dce0d /llvm/lib/Support/Annotation.cpp | |
| parent | b127c0684f91becb19414fed54c08781b28617d6 (diff) | |
| download | bcm5719-llvm-00d07afe981bcd5a611b7af777fda71a54d2b008.tar.gz bcm5719-llvm-00d07afe981bcd5a611b7af777fda71a54d2b008.zip | |
Fix the build on Cygwin. Patch by Aaron Gray.
llvm-svn: 74510
Diffstat (limited to 'llvm/lib/Support/Annotation.cpp')
| -rw-r--r-- | llvm/lib/Support/Annotation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Annotation.cpp b/llvm/lib/Support/Annotation.cpp index b7780433c06..4b5b97e41f3 100644 --- a/llvm/lib/Support/Annotation.cpp +++ b/llvm/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; |

