[all-commits] [llvm/llvm-project] 1e46eb: [Attributor][FIX] Avoid dangling value pointers du...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Wed Jan 8 17:33:28 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1e46eb74be6527377e47090bbe0fc9298f7de2c5
https://github.com/llvm/llvm-project/commit/1e46eb74be6527377e47090bbe0fc9298f7de2c5
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2020-01-08 (Wed, 08 Jan 2020)
Changed paths:
M llvm/include/llvm/IR/ValueHandle.h
M llvm/include/llvm/Transforms/IPO/Attributor.h
M llvm/lib/Transforms/IPO/Attributor.cpp
M llvm/test/Transforms/Attributor/undefined_behavior.ll
Log Message:
-----------
[Attributor][FIX] Avoid dangling value pointers during code modification
When we replace instructions with unreachable we delete instructions. We
now avoid dangling pointers to those deleted instructions in the
`ToBeChangedToUnreachableInsts` set. Other modification collections
might need to be updated in the future as well.
More information about the All-commits
mailing list