summaryrefslogtreecommitdiff
path: root/chromium/tools/gn/parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/tools/gn/parser.cc')
-rw-r--r--chromium/tools/gn/parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/tools/gn/parser.cc b/chromium/tools/gn/parser.cc
index 447dfcf5b0f..7e2c7f4338d 100644
--- a/chromium/tools/gn/parser.cc
+++ b/chromium/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(