Loading lldb/source/Host/macosx/HostInfoMacOSX.mm +0 −1 Original line number Diff line number Diff line Loading @@ -198,7 +198,6 @@ HostInfoMacOSX::ComputePythonDirectory(FileSpec &file_spec) llvm::SmallString<256> python_version_dir; llvm::raw_svector_ostream os(python_version_dir); os << "/python" << PY_MAJOR_VERSION << '.' << PY_MINOR_VERSION << "/site-packages"; os.flush(); // We may get our string truncated. Should we protect this with an assert? raw_path.append(python_version_dir.c_str()); Loading lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -518,7 +518,6 @@ DisassemblerLLVMC::LLVMCDisassembler::PrintMCInst (llvm::MCInst &mc_inst, llvm::raw_svector_ostream inst_stream(inst_string); m_instr_printer_ap->printInst (&mc_inst, inst_stream, unused_annotations, *m_subtarget_info_ap); inst_stream.flush(); const size_t output_size = std::min(dst_len - 1, inst_string.size()); std::memcpy(dst, inst_string.data(), output_size); dst[output_size] = '\0'; Loading lldb/source/Symbol/ClangASTContext.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -8811,7 +8811,6 @@ ClangASTContext::DumpTypeDescription (void* type, Stream *s) } } llvm_ostrm.flush(); if (buf.size() > 0) { s->Write (buf.data(), buf.size()); Loading Loading
lldb/source/Host/macosx/HostInfoMacOSX.mm +0 −1 Original line number Diff line number Diff line Loading @@ -198,7 +198,6 @@ HostInfoMacOSX::ComputePythonDirectory(FileSpec &file_spec) llvm::SmallString<256> python_version_dir; llvm::raw_svector_ostream os(python_version_dir); os << "/python" << PY_MAJOR_VERSION << '.' << PY_MINOR_VERSION << "/site-packages"; os.flush(); // We may get our string truncated. Should we protect this with an assert? raw_path.append(python_version_dir.c_str()); Loading
lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -518,7 +518,6 @@ DisassemblerLLVMC::LLVMCDisassembler::PrintMCInst (llvm::MCInst &mc_inst, llvm::raw_svector_ostream inst_stream(inst_string); m_instr_printer_ap->printInst (&mc_inst, inst_stream, unused_annotations, *m_subtarget_info_ap); inst_stream.flush(); const size_t output_size = std::min(dst_len - 1, inst_string.size()); std::memcpy(dst, inst_string.data(), output_size); dst[output_size] = '\0'; Loading
lldb/source/Symbol/ClangASTContext.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -8811,7 +8811,6 @@ ClangASTContext::DumpTypeDescription (void* type, Stream *s) } } llvm_ostrm.flush(); if (buf.size() > 0) { s->Write (buf.data(), buf.size()); Loading