HomePhabricator

[bugpoint] Fix crash when testing for miscompilation.

Description

[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.

Details

Committed
rafaelApr 24 2018, 1:15 PM
Parents
rL330762: [Support] fix countLeadingZeros for types shorter than int
Branches
Unknown
Tags
Unknown