diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/ValueMapper.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 1696e9c..5af56b0 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -565,9 +565,8 @@ void Mapper::remapDbgRecord(DbgRecord &DR) { } // Find Value operands and remap those. - SmallVector<Value *, 4> Vals, NewVals; - for (Value *Val : V.location_ops()) - Vals.push_back(Val); + SmallVector<Value *, 4> Vals(V.location_ops()); + SmallVector<Value *, 4> NewVals; for (Value *Val : Vals) NewVals.push_back(mapValue(Val)); |