diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-10-02 18:39:11 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-10-02 18:39:11 +0000 |
commit | fae00fe5d6b235c99fc8836b7af36ff5d7d8de93 (patch) | |
tree | 3ba00e479210b390e502841ca58dce6231dd6fc3 /tools/llvmc2/CompilationGraph.cpp | |
parent | 3eb29e2d8cfcd8079ec565e0a027a6a0bbf27f11 (diff) | |
download | external_llvm-fae00fe5d6b235c99fc8836b7af36ff5d7d8de93.zip external_llvm-fae00fe5d6b235c99fc8836b7af36ff5d7d8de93.tar.gz external_llvm-fae00fe5d6b235c99fc8836b7af36ff5d7d8de93.tar.bz2 |
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
Diffstat (limited to 'tools/llvmc2/CompilationGraph.cpp')
-rw-r--r-- | tools/llvmc2/CompilationGraph.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvmc2/CompilationGraph.cpp b/tools/llvmc2/CompilationGraph.cpp index 2e83f44..838b940 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) { |