commit | c0a87b7db06643178ad2cbce0767548c139ea387 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Oct 30 00:06:20 2007 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Oct 30 00:06:20 2007 +0000 |
tree | 7bea79e7d1573ab6a3cbd86619fc756d9c5a50bb | |
parent | 7ed05071969757ef84d7fd43168a82cb46d610fd [diff] [blame] |
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 72511bd..ba8ee07 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp
@@ -1032,6 +1032,8 @@ getObjcEncodingForType(AT->getElementType(), S); S += ']'; + } else if (T->getAsFunctionType()) { + S += '?'; } else assert(0 && "@encode for type not implemented!"); }