HomePhabricator

[PhiValues] Use callback value handles to invalidate deleted values

Authored by john.brawn on Aug 24 2018, 8:48 AM.

Description

[PhiValues] Use callback value handles to invalidate deleted values

The way that PhiValues is integrated with BasicAA it is possible for a pass
which uses BasicAA to pick up an instance of BasicAA that uses PhiValues without
intending to, and then delete values from a function in a way that causes
PhiValues to return dangling pointers to these deleted values. Fix this by
having a set of callback value handles to invalidate values when they're
deleted.

llvm-svn: 340613

Details

Committed
john.brawnAug 24 2018, 8:48 AM
Parents
rG6cc0e63e2f02: [cfi-verify] Support cross-DSO
Branches
Unknown
Tags
Unknown