summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/LowerSetJmp.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-06-15 22:49:30 +0000
committerChris Lattner <sabre@nondot.org>2005-06-15 22:49:30 +0000
commitd286b245be9aa45e6cf1c03a70cb5137f7e7d7e9 (patch)
treead99836d0b1e96f50d3de6a3a800101a4159d649 /lib/Transforms/IPO/LowerSetJmp.cpp
parent065e4208a93b40943087c060f3bb2c997eef8c87 (diff)
downloadllvm-d286b245be9aa45e6cf1c03a70cb5137f7e7d7e9.tar.gz
llvm-d286b245be9aa45e6cf1c03a70cb5137f7e7d7e9.tar.bz2
llvm-d286b245be9aa45e6cf1c03a70cb5137f7e7d7e9.tar.xz
Fix PR575, patch provided by John Mellor-Crummey. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r--lib/Transforms/IPO/LowerSetJmp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp
index 7300aa8f19..c040025115 100644
--- a/lib/Transforms/IPO/LowerSetJmp.cpp
+++ b/lib/Transforms/IPO/LowerSetJmp.cpp
@@ -459,6 +459,7 @@ void LowerSetJmp::visitCallInst(CallInst& CI)
BasicBlock* NewBB = OldBB->splitBasicBlock(CI);
assert(NewBB && "Couldn't split BB of \"call\" instruction!!");
+ DFSBlocks.insert(NewBB);
NewBB->setName("Call2Invoke");
Function* Func = OldBB->getParent();