commit | d59baba9fdbe8e69b8b7ee1e40cde786604e5d9a | [log] [tgz] |
---|---|---|
author | Fariborz Jahanian <fjahanian@apple.com> | Tue Jan 26 22:48:42 2010 +0000 |
committer | Fariborz Jahanian <fjahanian@apple.com> | Tue Jan 26 22:48:42 2010 +0000 |
tree | 0ffb271549b7631849c5108a303d724d7121a31c | |
parent | ded0a406b421595196729082387ba11814835fe2 [diff] [blame] |
Patch to add 'volatile' to first argument of all sync compare_and_swap to match them with gcc. It also fixes a few incorrect argument defitions. (fixes radar 7540291). llvm-svn: 94607
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index c2eddcb..4c4e77a 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp
@@ -4793,6 +4793,9 @@ case 'C': Type = Type.withConst(); break; + case 'D': + Type = Context.getVolatileType(Type); + break; } }