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) {
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)
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);