[ObjectFileMachO] Fix a build error on embedded.
authorDavide Italiano <ditaliano@apple.com>
Wed, 26 Feb 2020 22:31:06 +0000 (14:31 -0800)
committerDavide Italiano <ditaliano@apple.com>
Wed, 26 Feb 2020 22:31:48 +0000 (14:31 -0800)
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

index 5b75e1f..ad12819 100644 (file)
@@ -3506,8 +3506,8 @@ size_t ObjectFileMachO::ParseSymtab() {
                               N_FUN_addr_to_sym_idx.equal_range(nlist.n_value);
                           if (range.first != range.second) {
                             bool found_it = false;
-                            for (const auto pos = range.first;
-                                 pos != range.second; ++pos) {
+                            for (auto pos = range.first; pos != range.second;
+                                 ++pos) {
                               if (sym[sym_idx].GetMangled().GetName(
                                       lldb::eLanguageTypeUnknown,
                                       Mangled::ePreferMangled) ==
@@ -3551,8 +3551,8 @@ size_t ObjectFileMachO::ParseSymtab() {
                               nlist.n_value);
                           if (range.first != range.second) {
                             bool found_it = false;
-                            for (const auto pos = range.first;
-                                 pos != range.second; ++pos) {
+                            for (auto pos = range.first; pos != range.second;
+                                 ++pos) {
                               if (sym[sym_idx].GetMangled().GetName(
                                       lldb::eLanguageTypeUnknown,
                                       Mangled::ePreferMangled) ==