From 4c98fd8953f7d7a8f3a31f49630c28c5ca55b9f4 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 4 Nov 2009 07:28:41 +0000 Subject: Preserve type source information in sizeof/alignof expressions, and pass it through to indexing. llvm-svn: 86018 --- clang/lib/Frontend/RewriteObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/RewriteObjC.cpp') diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp index a00326267ed..24ad69e3e0d 100644 --- a/clang/lib/Frontend/RewriteObjC.cpp +++ b/clang/lib/Frontend/RewriteObjC.cpp @@ -2569,7 +2569,7 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) { // Build sizeof(returnType) SizeOfAlignOfExpr *sizeofExpr = new (Context) SizeOfAlignOfExpr(true, - returnType, + Context->getTrivialDeclaratorInfo(returnType), Context->getSizeType(), SourceLocation(), SourceLocation()); // (sizeof(returnType) <= 8 ? objc_msgSend(...) : objc_msgSend_stret(...)) -- cgit v1.2.3