From: Chris Lattner Date: Mon, 13 Oct 2003 16:49:21 +0000 (+0000) Subject: Whoops, we inserted into the wrong set. What's up with the dead set anyway? X-Git-Tag: android-x86-6.0-r1~1003^2~58805 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8b716f66ad7606b38e5393bd67344235936d2f2c;p=android-x86%2Fexternal-llvm.git Whoops, we inserted into the wrong set. What's up with the dead set anyway? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9094 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp index 5be2514a4ea..36b0c388b4b 100644 --- a/lib/Transforms/IPO/LowerSetJmp.cpp +++ b/lib/Transforms/IPO/LowerSetJmp.cpp @@ -132,13 +132,11 @@ bool LowerSetJmp::run(Module& M) doInitialization(M); if (SetJmp) { - std::set BBSet; - for (Value::use_iterator B = SetJmp->use_begin(), E = SetJmp->use_end(); B != E; ++B) { BasicBlock* BB = cast(*B)->getParent(); - for (df_ext_iterator I = df_ext_begin(BB, BBSet), - E = df_ext_end(BB, BBSet); I != E; ++I) + for (df_ext_iterator I = df_ext_begin(BB, DFSBlocks), + E = df_ext_end(BB, DFSBlocks); I != E; ++I) /* empty */; }