Fix bug that was bugging bugpoint

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-07 21:27:16 +00:00
parent 342d1826fb
commit ac8d4d9d59

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);
}