projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b353459
)
Fix PR1797
author
Chris Lattner
<sabre@nondot.org>
Tue, 8 Jan 2008 04:26:20 +0000
(
04:26
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 8 Jan 2008 04:26:20 +0000
(
04:26
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45736
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/bugpoint/ExtractFunction.cpp
patch
|
blob
|
history
diff --git
a/tools/bugpoint/ExtractFunction.cpp
b/tools/bugpoint/ExtractFunction.cpp
index c3c7799e5608828e54f97a747812b065a2cb78fb..906826e0e5bd1ceb0144194081135e258f277451 100644
(file)
--- a/
tools/bugpoint/ExtractFunction.cpp
+++ b/
tools/bugpoint/ExtractFunction.cpp
@@
-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";
}