llvm.org GIT mirror llvm / 6faaef5
Set blockBegin to point to the beginning of the block, not the end. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48999 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
9898 // If the starting point was specifiy, use it
9999 if (start) {
100100 QI = start;
101 blockBegin = start->getParent()->end();
101 blockBegin = start->getParent()->begin();
102102 // If the starting point wasn't specified, but the block was, use it
103103 } else if (!start && block) {
104104 QI = block->end();
105 blockBegin = block->end();
105 blockBegin = block->begin();
106106 }
107107
108108 // Walk backwards through the block, looking for dependencies