From 00d07afe981bcd5a611b7af777fda71a54d2b008 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 30 Jun 2009 05:33:46 +0000 Subject: Fix the build on Cygwin. Patch by Aaron Gray. llvm-svn: 74510 --- llvm/lib/Support/Annotation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/Annotation.cpp') 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 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 IDMap; -- cgit v1.2.3