From: Bill Wendling Date: Thu, 2 Oct 2008 18:39:11 +0000 (+0000) Subject: Avoid name shadowing with E variable defined in for(). This was giving VC++ X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=46f7a5ec1af7e991f5dae6625b0d187ab62ad511;p=oota-llvm.git Avoid name shadowing with E variable defined in for(). This was giving VC++ grief. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56961 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvmc2/CompilationGraph.cpp b/tools/llvmc2/CompilationGraph.cpp index 2e83f44f67f..838b9405013 100644 --- a/tools/llvmc2/CompilationGraph.cpp +++ b/tools/llvmc2/CompilationGraph.cpp @@ -55,10 +55,10 @@ namespace { for (typename C::const_iterator B = EdgesContainer.begin(), E = EdgesContainer.end(); B != E; ++B) { - const Edge* E = B->getPtr(); - unsigned EW = E->Weight(InLangs); + const Edge* e = B->getPtr(); + unsigned EW = e->Weight(InLangs); if (EW > MaxWeight) { - MaxEdge = E; + MaxEdge = e; MaxWeight = EW; SingleMax = true; } else if (EW == MaxWeight) {