Fix the build on Cygwin. Patch by Aaron Gray.
[oota-llvm.git] / include / llvm / ADT / Statistic.h
index 484ff5fbebc6ca5cc5f17cc3e62d3f13d4525bc7..1a4833cc4a07b538fa5072ce6e284583b75c89a4 100644 (file)
@@ -34,10 +34,10 @@ class Statistic {
 public:
   const char *Name;
   const char *Desc;
-  unsigned Value;
+  volatile llvm::sys::cas_flag Value;
   bool Initialized;
 
-  unsigned getValue() const { return Value; }
+  llvm::sys::cas_flag getValue() const { return Value; }
   const char *getName() const { return Name; }
   const char *getDesc() const { return Desc; }