One more bugpoitn fix for GCC5

This commit is contained in:
Benjamin Kramer 2020-01-29 03:42:02 +01:00
parent 42a25e7fe6
commit 49ad3f6143

View File

@ -500,7 +500,7 @@ bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock *> &BBs) {
for (BasicBlock *BB : Blocks)
BlockInfo.emplace_back(std::string(BB->getParent()->getName()),
BB->getName());
std::string(BB->getName()));
SmallVector<BasicBlock *, 16> ToProcess;
for (auto &F : *M) {
@ -608,7 +608,7 @@ bool ReduceCrashingConditionals::TestBlocks(
for (const BasicBlock *BB : Blocks)
BlockInfo.emplace_back(std::string(BB->getParent()->getName()),
BB->getName());
std::string(BB->getName()));
SmallVector<BasicBlock *, 16> ToProcess;
for (auto &F : *M) {
@ -699,7 +699,7 @@ bool ReduceSimplifyCFG::TestBlocks(std::vector<const BasicBlock *> &BBs) {
for (const BasicBlock *BB : Blocks)
BlockInfo.emplace_back(std::string(BB->getParent()->getName()),
BB->getName());
std::string(BB->getName()));
// Loop over and delete any hack up any blocks that are not listed...
for (auto &F : *M)