Index: tools/gn/command_ls.cc |
diff --git a/tools/gn/command_ls.cc b/tools/gn/command_ls.cc |
index f53a7272a32ae2583fcaf3cef3220cf14821b104..4d14e0fa1d6491360178186a402dcade759ded3c 100644 |
--- a/tools/gn/command_ls.cc |
+++ b/tools/gn/command_ls.cc |
@@ -97,10 +97,10 @@ int RunLs(const std::vector<std::string>& args) { |
target_matches.begin(), target_matches.end()); |
} else if (all_toolchains) { |
// List all resolved targets. |
- matches = setup->builder()->GetAllResolvedTargets(); |
+ matches = setup->builder().GetAllResolvedTargets(); |
} else { |
// List all resolved targets in the default toolchain. |
- for (auto* target : setup->builder()->GetAllResolvedTargets()) { |
+ for (auto* target : setup->builder().GetAllResolvedTargets()) { |
if (target->settings()->is_default()) |
matches.push_back(target); |
} |