diff options
Diffstat (limited to 'clang/Driver/RewriteObjC.cpp')
| -rw-r--r-- | clang/Driver/RewriteObjC.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/Driver/RewriteObjC.cpp b/clang/Driver/RewriteObjC.cpp index 35d7cc8e1fa..9d78c42d025 100644 --- a/clang/Driver/RewriteObjC.cpp +++ b/clang/Driver/RewriteObjC.cpp @@ -2254,9 +2254,10 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) { FT->getResultType(), SourceLocation()); // Build sizeof(returnType) - SizeOfAlignOfTypeExpr *sizeofExpr = new SizeOfAlignOfTypeExpr(true, - returnType, Context->getSizeType(), - SourceLocation(), SourceLocation()); + SizeOfAlignOfExpr *sizeofExpr = new SizeOfAlignOfExpr(true, true, + returnType.getAsOpaquePtr(), + Context->getSizeType(), + SourceLocation(), SourceLocation()); // (sizeof(returnType) <= 8 ? objc_msgSend(...) : objc_msgSend_stret(...)) // FIXME: Value of 8 is base on ppc32/x86 ABI for the most common cases. // For X86 it is more complicated and some kind of target specific routine |

