diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-07 21:27:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-07 21:27:16 +0000 |
commit | 1ee7f8e6bb52fe8d0a0056fae788276ddccb772d (patch) | |
tree | 60c5528a0058792096dfb685ceb8c8c80fa15452 /llvm/lib/Transforms/Utils | |
parent | 688ac5b7237e5951a263ca2f1ba7639d69b36151 (diff) | |
download | bcm5719-llvm-1ee7f8e6bb52fe8d0a0056fae788276ddccb772d.tar.gz bcm5719-llvm-1ee7f8e6bb52fe8d0a0056fae788276ddccb772d.zip |
Fix bug that was bugging bugpoint
llvm-svn: 4953
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r-- | llvm/lib/Transforms/Utils/ValueMapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index e6ab2974283..517a3523389 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -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); } |