diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-18 01:20:22 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-18 01:20:22 +0000 |
commit | afad76f6134e635c3cb240ec725d3b7989e7a625 (patch) | |
tree | 87fe028beb30773f2a3ef2d6f568a223d6447f43 /lib/Frontend/RewriteObjC.cpp | |
parent | 2853eac24e2e70a74d7da817653b0528b976039f (diff) |
__typeof should be able to handle block pointer types when
rewriting. Fixes radar 7659483.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | lib/Frontend/RewriteObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index 9d4d604716..5d99491cd6 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -4416,7 +4416,7 @@ void RewriteObjC::RewriteCastExpr(CStyleCastExpr *CE) { const TypeOfExprType *TypeOfExprTypePtr = cast<TypeOfExprType>(TypePtr); QT = TypeOfExprTypePtr->getUnderlyingExpr()->getType(); std::string TypeAsString = "("; - TypeAsString += QT.getAsString(); + RewriteBlockPointerType(TypeAsString, QT); TypeAsString += ")"; ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); return; |