diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-01-26 22:48:42 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-01-26 22:48:42 +0000 |
| commit | d59baba9fdbe8e69b8b7ee1e40cde786604e5d9a (patch) | |
| tree | 0ffb271549b7631849c5108a303d724d7121a31c /clang/lib | |
| parent | ded0a406b421595196729082387ba11814835fe2 (diff) | |
| download | bcm5719-llvm-d59baba9fdbe8e69b8b7ee1e40cde786604e5d9a.tar.gz bcm5719-llvm-d59baba9fdbe8e69b8b7ee1e40cde786604e5d9a.zip | |
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
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index c2eddcb76e7..4c4e77a625a 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -4793,6 +4793,9 @@ static QualType DecodeTypeFromStr(const char *&Str, ASTContext &Context, case 'C': Type = Type.withConst(); break; + case 'D': + Type = Context.getVolatileType(Type); + break; } } |

