mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
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
This commit is contained in:
parent
8cedb8a975
commit
46f7a5ec1a
@ -55,10 +55,10 @@ namespace {
|
|||||||
|
|
||||||
for (typename C::const_iterator B = EdgesContainer.begin(),
|
for (typename C::const_iterator B = EdgesContainer.begin(),
|
||||||
E = EdgesContainer.end(); B != E; ++B) {
|
E = EdgesContainer.end(); B != E; ++B) {
|
||||||
const Edge* E = B->getPtr();
|
const Edge* e = B->getPtr();
|
||||||
unsigned EW = E->Weight(InLangs);
|
unsigned EW = e->Weight(InLangs);
|
||||||
if (EW > MaxWeight) {
|
if (EW > MaxWeight) {
|
||||||
MaxEdge = E;
|
MaxEdge = e;
|
||||||
MaxWeight = EW;
|
MaxWeight = EW;
|
||||||
SingleMax = true;
|
SingleMax = true;
|
||||||
} else if (EW == MaxWeight) {
|
} else if (EW == MaxWeight) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user