diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-08-26 14:37:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-08-26 14:37:04 +0000 |
commit | 7e112b0d7979bc73d5f5e31315fd5f4f04c1cc71 (patch) | |
tree | 92d857c35d34b8aad9d4378da8c7b8cd5e5977a7 /clang/lib/Frontend/RewriteObjC.cpp | |
parent | 331b99888e5e64f28b118183e34e9e2cce97ae6e (diff) | |
download | bcm5719-llvm-7e112b0d7979bc73d5f5e31315fd5f4f04c1cc71.tar.gz bcm5719-llvm-7e112b0d7979bc73d5f5e31315fd5f4f04c1cc71.zip |
Source location information for ? and : in a ConditionalOperator, from Enea Zaffanella
llvm-svn: 80097
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | clang/lib/Frontend/RewriteObjC.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp index 4d7bb314ed4..8d5f4992aea 100644 --- a/clang/lib/Frontend/RewriteObjC.cpp +++ b/clang/lib/Frontend/RewriteObjC.cpp @@ -2591,7 +2591,9 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) { SourceLocation()); // (sizeof(returnType) <= 8 ? objc_msgSend(...) : objc_msgSend_stret(...)) ConditionalOperator *CondExpr = - new (Context) ConditionalOperator(lessThanExpr, CE, STCE, returnType); + new (Context) ConditionalOperator(lessThanExpr, + SourceLocation(), CE, + SourceLocation(), STCE, returnType); ReplacingStmt = new (Context) ParenExpr(SourceLocation(), SourceLocation(), CondExpr); } // delete Exp; leak for now, see RewritePropertySetter() usage for more info. |