diff options
author | Kazu Hirata <kazu@google.com> | 2024-07-28 22:08:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-28 22:08:12 -0700 |
commit | 34d48279b8161d2510fff9e94e10c9508d5249f8 (patch) | |
tree | b40338d8453b7ce72dfa3fd61c8b179eabc2edbd /llvm/lib/Transforms/Utils/ValueMapper.cpp | |
parent | dfdef2cbf738dd1cae99fb521d49086fcbbaf19a (diff) | |
download | llvm-34d48279b8161d2510fff9e94e10c9508d5249f8.zip llvm-34d48279b8161d2510fff9e94e10c9508d5249f8.tar.gz llvm-34d48279b8161d2510fff9e94e10c9508d5249f8.tar.bz2 |
[llvm] Initialize SmallVector with ranges (NFC) (#100948)
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)); |