[PATCH] D140837: [AAPointerInfo] fix assertion at the pass-through use of a pointer

Sameer Sahasrabuddhe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 2 07:22:30 PST 2023


sameerds added a comment.

In D140837#4021788 <https://reviews.llvm.org/D140837#4021788>, @arsenm wrote:

> Testcase?

I am not sure how to go about writing a reliable test for an invalidated reference into a container, especially a map. It would have to depend on possibly adding enough entries to cause a reallocation, or inserting keys in an order that causes earlier keys to be moved around. What would such a test actually check? That the invalidation "never" happens?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140837/new/

https://reviews.llvm.org/D140837



More information about the llvm-commits mailing list