[llvm-commits] CVS: llvm/lib/Transforms/IPO/LowerSetJmp.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 13 11:50:00 PDT 2003
Changes in directory llvm/lib/Transforms/IPO:
LowerSetJmp.cpp updated: 1.7 -> 1.8
---
Log message:
Whoops, we inserted into the wrong set. What's up with the dead set anyway?
---
Diffs of the changes: (+2 -4)
Index: llvm/lib/Transforms/IPO/LowerSetJmp.cpp
diff -u llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.7 llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.8
--- llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.7 Mon Oct 13 11:44:50 2003
+++ llvm/lib/Transforms/IPO/LowerSetJmp.cpp Mon Oct 13 11:49:21 2003
@@ -132,13 +132,11 @@
doInitialization(M);
if (SetJmp) {
- std::set<BasicBlock*> BBSet;
-
for (Value::use_iterator B = SetJmp->use_begin(), E = SetJmp->use_end();
B != E; ++B) {
BasicBlock* BB = cast<Instruction>(*B)->getParent();
- for (df_ext_iterator<BasicBlock*> I = df_ext_begin(BB, BBSet),
- E = df_ext_end(BB, BBSet); I != E; ++I)
+ for (df_ext_iterator<BasicBlock*> I = df_ext_begin(BB, DFSBlocks),
+ E = df_ext_end(BB, DFSBlocks); I != E; ++I)
/* empty */;
}
More information about the llvm-commits
mailing list