diff options
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/WasmObjectWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index 112c5b3..fb41c37 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -649,11 +649,11 @@ static void addData(SmallVectorImpl<char> &DataBytes, Fill->getValue()); } else if (auto *LEB = dyn_cast<MCLEBFragment>(&Frag)) { const SmallVectorImpl<char> &Contents = LEB->getContents(); - DataBytes.insert(DataBytes.end(), Contents.begin(), Contents.end()); + llvm::append_range(DataBytes, Contents); } else { const auto &DataFrag = cast<MCDataFragment>(Frag); const SmallVectorImpl<char> &Contents = DataFrag.getContents(); - DataBytes.insert(DataBytes.end(), Contents.begin(), Contents.end()); + llvm::append_range(DataBytes, Contents); } } |