commit | 5695bb75abfcf88364894f84989709ee7dca635b | [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 | 9b57fbac2b861414bf1e4c2320067da8574757ac [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!"); }