From b001de7458d17c17e6d8b8034c7cfcefd3b70c00 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 6 Oct 2011 23:00:33 +0000 Subject: Support for C1x _Atomic specifier (see testcase). This is primarily being committed at the moment to help support C++0x , but it should be a solid base for implementing the full specification of C1x _Atomic. Thanks to Jeffrey Yasskin for the thorough review! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141330 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenTypes.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/CodeGen/CodeGenTypes.cpp') diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 3032f820c6..61c1581798 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -548,6 +548,11 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) { getCXXABI().ConvertMemberPointerType(cast(Ty)); break; } + + case Type::Atomic: { + ResultType = ConvertTypeForMem(cast(Ty)->getValueType()); + break; + } } assert(ResultType && "Didn't convert a type?"); -- cgit v1.2.3