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/Analysis | |
parent | e3821c79bc5b535e4cb8ade73f5657a61c04b0a0 (diff) | |
download | external_llvm-5ec56cc43895b8b78ef2480d54982e3866d9d07a.zip external_llvm-5ec56cc43895b8b78ef2480d54982e3866d9d07a.tar.gz external_llvm-5ec56cc43895b8b78ef2480d54982e3866d9d07a.tar.bz2 |
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/Analysis')
-rw-r--r-- | lib/Analysis/IPA/Andersens.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index 4ace049..3fb6526 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -211,7 +211,7 @@ namespace { // for each location equivalent Node. struct Node { private: - static unsigned Counter; + static volatile sys::cas_flag Counter; public: Value *Val; @@ -618,7 +618,7 @@ X("anders-aa", "Andersen's Interprocedural Alias Analysis", false, true); static RegisterAnalysisGroup<AliasAnalysis> Y(X); // Initialize Timestamp Counter (static). -unsigned Andersens::Node::Counter = 0; +volatile llvm::sys::cas_flag Andersens::Node::Counter = 0; ModulePass *llvm::createAndersensPass() { return new Andersens(); } |