mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
If the block extractor fails, actually emit the bc file that failed to extract
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15675 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c90f2963c4
commit
891150f0b2
@ -262,7 +262,11 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const
|
||||
PI.push_back(getPI(new BlockExtractorPass()));
|
||||
Module *Ret = runPassesOn(M, PI);
|
||||
BlocksToNotExtract.clear();
|
||||
if (Ret == 0)
|
||||
if (Ret == 0) {
|
||||
std::cout << "*** Basic Block extraction failed, please report a bug!\n";
|
||||
M = swapProgramIn(M);
|
||||
EmitProgressBytecode("basicblockextractfail", true);
|
||||
M = swapProgramIn(M);
|
||||
}
|
||||
return Ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user