[lldb] Fix two deprecation warnings

No behavior change.
This commit is contained in:
Nico Weber
2023-12-22 12:11:05 -05:00
parent d782f198a6
commit 04c473bea3
2 changed files with 2 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ llvm::StringRef HostInfoLinux::GetDistributionId() {
if (strstr(distribution_id, distributor_id_key)) {
// strip newlines
std::string id_string(distribution_id + strlen(distributor_id_key));
llvm::erase_value(id_string, '\n');
llvm::erase(id_string, '\n');
// lower case it and convert whitespace to underscores
std::transform(

View File

@@ -24,7 +24,7 @@ void JITLoaderList::Append(const JITLoaderSP &jit_loader_sp) {
void JITLoaderList::Remove(const JITLoaderSP &jit_loader_sp) {
std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex);
llvm::erase_value(m_jit_loaders_vec, jit_loader_sp);
llvm::erase(m_jit_loaders_vec, jit_loader_sp);
}
size_t JITLoaderList::GetSize() const { return m_jit_loaders_vec.size(); }