mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix PR1797
llvm-svn: 45736
This commit is contained in:
parent
e7fd8ad117
commit
3ca4e2df70
@ -335,6 +335,9 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const
|
|||||||
for (std::vector<BasicBlock*>::const_iterator I = BBs.begin(), E = BBs.end();
|
for (std::vector<BasicBlock*>::const_iterator I = BBs.begin(), E = BBs.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
BasicBlock *BB = *I;
|
BasicBlock *BB = *I;
|
||||||
|
// If the BB doesn't have a name, give it one so we have something to key
|
||||||
|
// off of.
|
||||||
|
if (!BB->hasName()) BB->setName("tmpbb");
|
||||||
BlocksToNotExtractFile << BB->getParent()->getName() << " "
|
BlocksToNotExtractFile << BB->getParent()->getName() << " "
|
||||||
<< BB->getName() << "\n";
|
<< BB->getName() << "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user