mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Fix PR1797
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b353459d68
commit
4a6a6f21f3
@ -335,6 +335,9 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const
|
||||
for (std::vector<BasicBlock*>::const_iterator I = BBs.begin(), E = BBs.end();
|
||||
I != E; ++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() << " "
|
||||
<< BB->getName() << "\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user