diff options
author | John McCall <rjmccall@apple.com> | 2009-11-04 07:28:41 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-04 07:28:41 +0000 |
commit | 4c98fd8953f7d7a8f3a31f49630c28c5ca55b9f4 (patch) | |
tree | b3700f5f6caba16a0572e65cd457e630136ff5cc /clang/lib/Frontend/RewriteObjC.cpp | |
parent | c95a1fa7f6b7284ad6c334294f0a0e3cecc1eec9 (diff) | |
download | bcm5719-llvm-4c98fd8953f7d7a8f3a31f49630c28c5ca55b9f4.tar.gz bcm5719-llvm-4c98fd8953f7d7a8f3a31f49630c28c5ca55b9f4.zip |
Preserve type source information in sizeof/alignof expressions, and pass it
through to indexing.
llvm-svn: 86018
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | clang/lib/Frontend/RewriteObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(...)) |