mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Try harder to fix bugpoint with GCC5
This commit is contained in:
parent
2d00d6fd92
commit
9bf5dbee1c
@ -607,7 +607,8 @@ bool ReduceCrashingConditionals::TestBlocks(
|
||||
std::vector<std::pair<std::string, std::string>> BlockInfo;
|
||||
|
||||
for (const BasicBlock *BB : Blocks)
|
||||
BlockInfo.emplace_back(BB->getParent()->getName(), BB->getName());
|
||||
BlockInfo.emplace_back(std::string(BB->getParent()->getName()),
|
||||
BB->getName());
|
||||
|
||||
SmallVector<BasicBlock *, 16> ToProcess;
|
||||
for (auto &F : *M) {
|
||||
@ -697,7 +698,8 @@ bool ReduceSimplifyCFG::TestBlocks(std::vector<const BasicBlock *> &BBs) {
|
||||
std::vector<std::pair<std::string, std::string>> BlockInfo;
|
||||
|
||||
for (const BasicBlock *BB : Blocks)
|
||||
BlockInfo.emplace_back(BB->getParent()->getName(), BB->getName());
|
||||
BlockInfo.emplace_back(std::string(BB->getParent()->getName()),
|
||||
BB->getName());
|
||||
|
||||
// Loop over and delete any hack up any blocks that are not listed...
|
||||
for (auto &F : *M)
|
||||
|
@ -588,7 +588,8 @@ ExtractBlocks(BugDriver &BD,
|
||||
for (Module::iterator I = Extracted->begin(), E = Extracted->end(); I != E;
|
||||
++I)
|
||||
if (!I->isDeclaration())
|
||||
MisCompFunctions.emplace_back(I->getName(), I->getFunctionType());
|
||||
MisCompFunctions.emplace_back(std::string(I->getName()),
|
||||
I->getFunctionType());
|
||||
|
||||
if (Linker::linkModules(*ProgClone, std::move(Extracted)))
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user