Fix bug that was bugging bugpoint

llvm-svn: 4953
This commit is contained in:
Chris Lattner
2002-12-07 21:27:16 +00:00
parent 688ac5b723
commit 1ee7f8e6bb

View File

@@ -33,7 +33,7 @@ Value *MapValue(const Value *V, std::map<const Value*, Value*> &VM) {
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 @@ Value *MapValue(const Value *V, std::map<const Value*, Value*> &VM) {
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);
}