Nick Lewycky 61e2ff8f82 Teach globalopt to play nice with leak checkers. This is a reapplication of
r160529 that was subsequently reverted. The fix was to not call
GV->eraseFromParent() right before the caller does the same. The existing
testcases already caught this bug if run under valgrind.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160602 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-21 08:29:45 +00:00
..
2012-07-19 00:15:11 +00:00
2012-07-19 00:04:14 +00:00
2012-07-19 21:43:55 +00:00
2012-07-21 03:30:44 +00:00