summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-01-26 22:48:42 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-01-26 22:48:42 +0000
commitd59baba9fdbe8e69b8b7ee1e40cde786604e5d9a (patch)
tree0ffb271549b7631849c5108a303d724d7121a31c /clang/lib
parentded0a406b421595196729082387ba11814835fe2 (diff)
downloadbcm5719-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.cpp3
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;
}
}
OpenPOWER on IntegriCloud