diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-08 04:26:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-08 04:26:20 +0000 |
commit | 97879424fe8e46ba7c4a60aca263a6e2340739cb (patch) | |
tree | c10cf75fc67af09a81e94e8e51401ed09346efe6 /llvm/tools/bugpoint/ExtractFunction.cpp | |
parent | e3e358c3171c79e626cad0a382334febae05e356 (diff) | |
download | bcm5719-llvm-97879424fe8e46ba7c4a60aca263a6e2340739cb.tar.gz bcm5719-llvm-97879424fe8e46ba7c4a60aca263a6e2340739cb.zip |
Fix PR1797
llvm-svn: 45736
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index c3c7799e560..906826e0e5b 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/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"; } |