summaryrefslogtreecommitdiff
path: root/lib/Analysis/PostDominators.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-14 14:59:16 +0000
committerChris Lattner <sabre@nondot.org>2004-10-14 14:59:16 +0000
commit979c38ba207cf2383b761f2bdd09146b05573239 (patch)
treef3146c18b6ba4b5a338a229bdc09bfe33f535601 /lib/Analysis/PostDominators.cpp
parent15f47878e43fe8a3f22631f72a4d242322f66555 (diff)
downloadllvm-979c38ba207cf2383b761f2bdd09146b05573239.tar.gz
llvm-979c38ba207cf2383b761f2bdd09146b05573239.tar.bz2
llvm-979c38ba207cf2383b761f2bdd09146b05573239.tar.xz
Do not use the same variable name for two different variables in the
same scope. This confused VC++ (and probably people too!). Patch by Morten Ofstad! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PostDominators.cpp')
-rw-r--r--lib/Analysis/PostDominators.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp
index e5908c496b..08822949c6 100644
--- a/lib/Analysis/PostDominators.cpp
+++ b/lib/Analysis/PostDominators.cpp
@@ -182,9 +182,8 @@ void PostDominatorTree::calculate(const PostDominatorSet &DS) {
// be a predecessor in the depth first order that we are iterating through
// the function.
//
- DominatorSet::DomSetType::const_iterator I = Dominators.begin();
- DominatorSet::DomSetType::const_iterator End = Dominators.end();
- for (; I != End; ++I) { // Iterate over dominators...
+ for (DominatorSet::DomSetType::const_iterator I = Dominators.begin(),
+ E = Dominators.end(); I != E; ++I) { // Iterate over dominators.
// All of our dominators should form a chain, where the number
// of elements in the dominator set indicates what level the
// node is at in the chain. We want the node immediately