]> granicus.if.org Git - clang/commitdiff
Handle function types.
authorAnders Carlsson <andersca@mac.com>
Tue, 30 Oct 2007 00:06:20 +0000 (00:06 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 30 Oct 2007 00:06:20 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43485 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp

index 72511bd7b01fcf79b2635e198b1d3d74b6f92d5c..ba8ee077c5e409af01d77a5145453e4364655092 100644 (file)
@@ -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!");
 }