[all-commits] [llvm/llvm-project] 5429c8: [Attributor][FIX] Avoid dangling pointers during c...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Jan 23 16:43:36 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5429c82db2295f191c05fca42659b2998224c1fe
      https://github.com/llvm/llvm-project/commit/5429c82db2295f191c05fca42659b2998224c1fe
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-01-23 (Thu, 23 Jan 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Transforms/IPO/Attributor.cpp

  Log Message:
  -----------
  [Attributor][FIX] Avoid dangling pointers during code deletion

It can happen that we have instructions in the ToBeDeletedInsts set
which are deleted earlier already. To avoid dangling pointers we use
weak tracking handles.




More information about the All-commits mailing list