[llvm-commits] CVS: llvm/lib/Transforms/Utils/ValueMapper.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Dec 7 15:28:01 PST 2002
Changes in directory llvm/lib/Transforms/Utils:
ValueMapper.cpp updated: 1.1 -> 1.2
---
Log message:
Fix bug that was bugging bugpoint
---
Diffs of the changes:
Index: llvm/lib/Transforms/Utils/ValueMapper.cpp
diff -u llvm/lib/Transforms/Utils/ValueMapper.cpp:1.1 llvm/lib/Transforms/Utils/ValueMapper.cpp:1.2
--- llvm/lib/Transforms/Utils/ValueMapper.cpp:1.1 Wed Nov 20 14:47:41 2002
+++ llvm/lib/Transforms/Utils/ValueMapper.cpp Sat Dec 7 15:27:16 2002
@@ -33,7 +33,7 @@
for (unsigned j = 0; j != i; ++j)
Values.push_back(cast<Constant>(Vals[j]));
Values.push_back(cast<Constant>(MV));
- for (; i != e; ++i)
+ for (++i; i != e; ++i)
Values.push_back(cast<Constant>(MapValue(Vals[i], VM)));
return VMSlot = ConstantArray::get(CA->getType(), Values);
}
@@ -53,7 +53,7 @@
for (unsigned j = 0; j != i; ++j)
Values.push_back(cast<Constant>(Vals[j]));
Values.push_back(cast<Constant>(MV));
- for (; i != e; ++i)
+ for (++i; i != e; ++i)
Values.push_back(cast<Constant>(MapValue(Vals[i], VM)));
return VMSlot = ConstantStruct::get(CS->getType(), Values);
}
More information about the llvm-commits
mailing list