[ObjectFileMachO] Fix a build error on embedded.

This commit is contained in:
Davide Italiano 2020-02-26 14:31:06 -08:00
parent 65f99b5383
commit 34ee941f6d

View 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) ==