diff options
author | John McCall <rjmccall@apple.com> | 2010-06-11 10:11:05 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-06-11 10:11:05 +0000 |
commit | 24da7093a84e4eb92731e0565ab655697b2ed08f (patch) | |
tree | 4694588547cc808d304632d444ef0509bf503083 | |
parent | ddb0ce750c425af474008f091fb7a3483e980335 (diff) |
Provide an Objective C mangling for wchar_t. Patch by Nico Weber!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105818 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/ASTContext.cpp | 1 | ||||
-rw-r--r-- | test/SemaTemplate/instantiate-objc-1.mm | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 1cc8eb8fb2..e2074e8b74 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -3477,6 +3477,7 @@ static char ObjCEncodingForPrimitiveKind(const ASTContext *C, QualType T) { case BuiltinType::Char_S: case BuiltinType::SChar: return 'c'; case BuiltinType::Short: return 's'; + case BuiltinType::WChar: case BuiltinType::Int: return 'i'; case BuiltinType::Long: return diff --git a/test/SemaTemplate/instantiate-objc-1.mm b/test/SemaTemplate/instantiate-objc-1.mm index 92d0d6c950..2780f8e579 100644 --- a/test/SemaTemplate/instantiate-objc-1.mm +++ b/test/SemaTemplate/instantiate-objc-1.mm @@ -45,3 +45,4 @@ template <typename T> struct EncodeTest { template struct EncodeTest<int>; template struct EncodeTest<double>; +template struct EncodeTest<wchar_t>; |