Skip to content
Commit 72b83e5e authored by Nick Lewycky's avatar Nick Lewycky
Browse files

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.

llvm-svn: 160602
parent f72efdb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment