[ScalarEvolution] Change addRequired to addRequiredTransitive on two passes where...
authorCraig Topper <craig.topper@gmail.com>
Thu, 23 Jul 2015 07:33:48 +0000 (07:33 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 23 Jul 2015 07:33:48 +0000 (07:33 +0000)
commit25544b1bcef0205c2c551440fa58f7532bf7901c
tree832c6111e7fe5eeb3e8bfac5bebda6a869d265dd
parent8f87a9998e4ae6656b3ddbcd54e63ae70824d958
[ScalarEvolution] Change addRequired to addRequiredTransitive on two passes where ScalarEvolution stores long lived raw pointers to objects those passes own.

This prevents the pointers from dangling when those passes are freed.

http://reviews.llvm.org/D11236
Patch by Steve King.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242989 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp