[PATCH] D45365: [bugpoint] Fix crash when testing for miscompilation

Andrzej Janik via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 6 05:18:14 PDT 2018


ajanik created this revision.
ajanik added reviewers: mehdi_amini, rafael, davide.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D45365

Files:
  bugpoint/BugDriver.h
  bugpoint/CrashDebugger.cpp
  bugpoint/ExtractFunction.cpp
  bugpoint/Miscompilation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45365.141317.patch
Type: text/x-patch
Size: 4430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180406/b739eab8/attachment.bin>


More information about the llvm-commits mailing list