From: Anders Carlsson Date: Tue, 30 Oct 2007 00:06:20 +0000 (+0000) Subject: Handle function types. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0a87b7db06643178ad2cbce0767548c139ea387;p=clang Handle function types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43485 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp index 72511bd7b0..ba8ee077c5 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp @@ -1032,6 +1032,8 @@ void ASTContext::getObjcEncodingForType(QualType T, std::string& S) const getObjcEncodingForType(AT->getElementType(), S); S += ']'; + } else if (T->getAsFunctionType()) { + S += '?'; } else assert(0 && "@encode for type not implemented!"); }