commit | 46e550273c4f3fd04407f2521b9456256272d52d | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Tue Apr 24 20:15:27 2018 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Tue Apr 24 20:15:27 2018 +0000 |
tree | 20b72ad8393fca843206f257c731b36ef88e3d7a | |
parent | 620db41ce748c4939e9b32c73ba7003dd91364bc [diff] |
[bugpoint] Fix crash when testing for miscompilation. Method BugDriver::performFinalCleanups(...) would delete Module object it worked on, which was also deleted by its caller (e.g. TestCodeGenerator(...)). Changed the code to avoid double delete and make Module ownership slightly clearer. Patch by Andrzej Janik. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330763 91177308-0d34-0410-b5e6-96231b3b80d8