commit | 192f3cf148c2df97ad8751641a4e54a3be2d0970 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Jun 25 11:21:41 2024 +0000 |
committer | Elliott Hughes <enh@google.com> | Tue Jun 25 11:21:41 2024 +0000 |
tree | c11c5a53bd752c40da0b88b6d3dd08ea991411ae | |
parent | 0782929faa7205a2adf4ae30a98188dcc7916ee6 [diff] [blame] |
The libc++ upgrade means we can use contains() in the linker now. Change-Id: I30f764ddfd101dde1b7bbcefbf78182a19b3db7c
diff --git a/linker/linker.cpp b/linker/linker.cpp index 8b467a3..e13d37d 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp
@@ -3595,7 +3595,7 @@ // 2. Initialize other namespaces for (auto& ns_config : namespace_configs) { - if (namespaces.find(ns_config->name()) != namespaces.end()) { + if (namespaces.contains(ns_config->name())) { continue; }