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;