summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/RewriteObjC.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-04 07:28:41 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-04 07:28:41 +0000
commit4c98fd8953f7d7a8f3a31f49630c28c5ca55b9f4 (patch)
treeb3700f5f6caba16a0572e65cd457e630136ff5cc /clang/lib/Frontend/RewriteObjC.cpp
parentc95a1fa7f6b7284ad6c334294f0a0e3cecc1eec9 (diff)
downloadbcm5719-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.cpp2
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(...))
OpenPOWER on IntegriCloud