[PATCH] D44607: Recompute invalidated iterator in insertTargetAndModeArgs

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 19 02:25:00 PDT 2018


sepavloff added a comment.

Good catch, thank you.

To avoid code duplication you could change `InsertionPoint` into an index and use `begin() + InsertionPoint` in calls to `insert`.


Repository:
  rC Clang

https://reviews.llvm.org/D44607





More information about the cfe-commits mailing list