mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
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:
parent
342d1826fb
commit
ac8d4d9d59
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user