From: John McCall Date: Fri, 11 Jun 2010 10:11:05 +0000 (+0000) Subject: Provide an Objective C mangling for wchar_t. Patch by Nico Weber! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24da7093a84e4eb92731e0565ab655697b2ed08f;p=clang 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 --- 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 struct EncodeTest { template struct EncodeTest; template struct EncodeTest; +template struct EncodeTest;