aaron.ballman added a comment. In D85193#2207052 <https://reviews.llvm.org/D85193#2207052>, @ArcsinX wrote:
> In D85193#2204685 <https://reviews.llvm.org/D85193#2204685>, @aaron.ballman > wrote: > >> Should the `StructuredIndex` still be incremented even in the case of an >> error, as done around line 1589 and 1647? > > Yes, it looks like we need to increment `StructuredIndex`. > >> Do we need a similar change around line 2405? > > Think so. But I could not find a test case for this. > >> I sort of wonder if the correct change is to make >> `UpdateStructuredListElement()` resilient to being passed a null `Expr *` >> and then removing the manual increments when the expression is an error. > > Should it be in this patch? Given that we have at least four uses of this pattern in the file, I'd say it should be this patch. WDYT? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D85193/new/ https://reviews.llvm.org/D85193 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits