[all-commits] [llvm/llvm-project] 7156bc: [Attributor][FIX] Ensure we do not use stale refer...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Aug 15 15:45:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7156bcf2867f4ca98c8c9166e1ecb77daab08aa5
      https://github.com/llvm/llvm-project/commit/7156bcf2867f4ca98c8c9166e1ecb77daab08aa5
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2024-08-15 (Thu, 15 Aug 2024)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    A llvm/test/Transforms/Attributor/reduced/aapointer_info_map_invalidation.ll

  Log Message:
  -----------
  [Attributor][FIX] Ensure we do not use stale references (#104495)

When copying map entries, we might run into resizing and invalidate the
RHS of the assignment. We dealt with this before and now use the proper
helper to avoid the problem in another place.

Fixes: https://github.com/llvm/llvm-project/issues/104397



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list