summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-10-02 18:39:11 +0000
committerBill Wendling <isanbard@gmail.com>2008-10-02 18:39:11 +0000
commitbed16a1a2bbac2b18edd93e1aa882888916b742e (patch)
tree44880ffcf818d08cfc08281160c580cdd68295c6
parent0db9d67f9ab80e327aa93c1def5d35ef067b8f5c (diff)
downloadbcm5719-llvm-bed16a1a2bbac2b18edd93e1aa882888916b742e.tar.gz
bcm5719-llvm-bed16a1a2bbac2b18edd93e1aa882888916b742e.zip
Avoid name shadowing with E variable defined in for(). This was giving VC++
grief. llvm-svn: 56961
-rw-r--r--llvm/tools/llvmc2/CompilationGraph.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvmc2/CompilationGraph.cpp b/llvm/tools/llvmc2/CompilationGraph.cpp
index 2e83f44f67f..838b9405013 100644
--- a/llvm/tools/llvmc2/CompilationGraph.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud