[cfe-commits] r90678 - /cfe/trunk/lib/Frontend/RewriteObjC.cpp
steve naroff
snaroff at apple.com
Sat Dec 5 17:30:00 PST 2009
Thanks for fixing this, however I'm integrating a bunch of changes
from a branch I was maintaining and this caused me some confusion (I
was trying to integrate the same exact fix and couldn't figure out why
I was conflicting with myself:-).
If possible, I'd appreciate holding any improvements until I'm done
with the integration (which should be complete within the next day or
so).
Thanks for your support,
snaroff
On Dec 5, 2009, at 5:16 PM, Benjamin Kramer wrote:
> Author: d0k
> Date: Sat Dec 5 16:16:51 2009
> New Revision: 90678
>
> URL: http://llvm.org/viewvc/llvm-project?rev=90678&view=rev
> Log:
> Don't call back() on an empty vector.
>
> Modified:
> cfe/trunk/lib/Frontend/RewriteObjC.cpp
>
> Modified: cfe/trunk/lib/Frontend/RewriteObjC.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/RewriteObjC.cpp?rev=90678&r1=90677&r2=90678&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/lib/Frontend/RewriteObjC.cpp (original)
> +++ cfe/trunk/lib/Frontend/RewriteObjC.cpp Sat Dec 5 16:16:51 2009
> @@ -4591,8 +4591,7 @@
> // for (id <FooProtocol> index in someArray) ;
> // This is because RewriteObjCForCollectionStmt() does textual
> rewriting
> // and it depends on the original text locations/positions.
> - Stmt *ParentStmt = Stmts.back();
> - if (!ParentStmt || !isa<ObjCForCollectionStmt>(ParentStmt))
> + if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back()))
> RewriteObjCQualifiedInterfaceTypes(*DS->decl_begin());
>
> // Blocks rewrite rules.
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list