Index: tools/gn/parser.cc |
diff --git a/tools/gn/parser.cc b/tools/gn/parser.cc |
index 447dfcf5b0fce5466a0aad329594530fe2a25ee9..7e2c7f4338d81a429ed9388a1aa7ea73869b343f 100644 |
--- a/tools/gn/parser.cc |
+++ b/tools/gn/parser.cc |
@@ -824,7 +824,7 @@ void Parser::AssignComments(ParseNode* file) { |
CHECK_EQ(node, file) << "Only expected on top file node"; |
continue; |
} |
- const Location& start = node->GetRange().begin(); |
+ const Location start = node->GetRange().begin(); |
while (cur_comment < static_cast<int>(line_comment_tokens_.size())) { |
if (start.byte() >= line_comment_tokens_[cur_comment].location().byte()) { |
const_cast<ParseNode*>(node)->comments_mutable()->append_before( |