Skip to content

Commit 04c473b

Browse files
committed
[lldb] Fix two deprecation warnings
No behavior change.
1 parent d782f19 commit 04c473b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/source/Host/linux/HostInfoLinux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ llvm::StringRef HostInfoLinux::GetDistributionId() {
123123
if (strstr(distribution_id, distributor_id_key)) {
124124
// strip newlines
125125
std::string id_string(distribution_id + strlen(distributor_id_key));
126-
llvm::erase_value(id_string, '\n');
126+
llvm::erase(id_string, '\n');
127127

128128
// lower case it and convert whitespace to underscores
129129
std::transform(

lldb/source/Target/JITLoaderList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void JITLoaderList::Append(const JITLoaderSP &jit_loader_sp) {
2424

2525
void JITLoaderList::Remove(const JITLoaderSP &jit_loader_sp) {
2626
std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex);
27-
llvm::erase_value(m_jit_loaders_vec, jit_loader_sp);
27+
llvm::erase(m_jit_loaders_vec, jit_loader_sp);
2828
}
2929

3030
size_t JITLoaderList::GetSize() const { return m_jit_loaders_vec.size(); }

0 commit comments

Comments
 (0)