aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-02-02 18:24:29 +0000
committerSteve Naroff <snaroff@apple.com>2009-02-02 18:24:29 +0000
commit21a98b188857d690aa4510c52ac4317ffa0908a8 (patch)
tree93ae627b1dc30c5b12b2c32413052dc770684902 /lib/AST/ASTContext.cpp
parent9a82b52ae83fa1c09266b2fa5f0375392f7d127f (diff)
Change the ObjC type encoding for block pointer types to "@?" (for consistency with GCC).
This fixes <rdar://problem/6538564> clang ObjC rewriter: Wrong encoding emitted for methods with Block parameters. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index c43ae78c9f..7892c84f92 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -2100,7 +2100,7 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S,
else
S += 'i';
} else if (T->isBlockPointerType()) {
- S += '^'; // This type string is the same as general pointers.
+ S += "@?"; // Unlike a pointer-to-function, which is "^?".
} else if (T->isObjCInterfaceType()) {
// @encode(class_name)
ObjCInterfaceDecl *OI = T->getAsObjCInterfaceType()->getDecl();