[llvm-commits] [llvm] r45736 - /llvm/trunk/tools/bugpoint/ExtractFunction.cpp
Chris Lattner
sabre at nondot.org
Mon Jan 7 20:26:20 PST 2008
Author: lattner
Date: Mon Jan 7 22:26:20 2008
New Revision: 45736
URL: http://llvm.org/viewvc/llvm-project?rev=45736&view=rev
Log:
Fix PR1797
Modified:
llvm/trunk/tools/bugpoint/ExtractFunction.cpp
Modified: llvm/trunk/tools/bugpoint/ExtractFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ExtractFunction.cpp?rev=45736&r1=45735&r2=45736&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/ExtractFunction.cpp (original)
+++ llvm/trunk/tools/bugpoint/ExtractFunction.cpp Mon Jan 7 22:26:20 2008
@@ -335,6 +335,9 @@
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";
}
More information about the llvm-commits
mailing list