From c0a87b7db06643178ad2cbce0767548c139ea387 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 30 Oct 2007 00:06:20 +0000 Subject: [PATCH] Handle function types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43485 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/ASTContext.cpp | 2 ++ 1 file changed, 2 insertions(+) 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!"); } -- 2.50.1