aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-03-31 01:39:20 +0000
committerOwen Anderson <resistor@mac.com>2008-03-31 01:39:20 +0000
commitbc91bd34f1d2e4fdfef691fbe9015eabdeec8071 (patch)
tree8d4b88bc80b8a7e24d2b5433d054cdee886ef17e /lib
parent83ad90a779f8ce46d6923bc6f63aa15b83968efb (diff)
downloadexternal_llvm-bc91bd34f1d2e4fdfef691fbe9015eabdeec8071.zip
external_llvm-bc91bd34f1d2e4fdfef691fbe9015eabdeec8071.tar.gz
external_llvm-bc91bd34f1d2e4fdfef691fbe9015eabdeec8071.tar.bz2
Fix a major bug in the DFS calculation. Thanks for Christopher Lamb for pointing this out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/StrongPHIElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp
index 05b38bb..0c78536 100644
--- a/lib/CodeGen/StrongPHIElimination.cpp
+++ b/lib/CodeGen/StrongPHIElimination.cpp
@@ -174,7 +174,7 @@ void StrongPHIElimination::computeDFS(MachineFunction& MF) {
}
bool inserted = false;
- for (MachineDomTreeNode::iterator I = node->begin(), E = node->end();
+ for (MachineDomTreeNode::iterator I = currNode->begin(), E = currNode->end();
I != E; ++I)
if (!frontier.count(*I) && !visited.count(*I)) {
worklist.push_back(*I);