[all-commits] [llvm/llvm-project] a73e0c: [AAPointerInfo] fix assertion at the pass-through ...

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Wed Jan 4 03:24:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a73e0c306cdd653e0aa035fc89e91acf771bd318
      https://github.com/llvm/llvm-project/commit/a73e0c306cdd653e0aa035fc89e91acf771bd318
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2023-01-04 (Wed, 04 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [AAPointerInfo] fix assertion at the pass-through use of a pointer

HandlePassthroughUser may sometimes create a new entry for the OffsetInfo of a
user in the OffsetInfoMap. This can invalidate outstanding references into the
map, including the one which needs to be copied into the new entry. This
produces invalid offset info that can trigger assertions.

Fixed this by not using references at this point. The bug was originally
introduced in commit ID 0dc0a441323d41b4860668f38d290579e0de130c.

Reviewed By: ronlieb

Differential Revision: https://reviews.llvm.org/D140837




More information about the All-commits mailing list