Skip to content

Commit 9896288

Browse files
committed
Revert "Revert "libSyntax: avoid copying token text when lexing token syntax nodes, NFC. (#12723)""
This reverts commit 407db56.
1 parent 99338d3 commit 9896288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/Lexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ syntax::RawSyntaxInfo Lexer::fullLex() {
745745
}
746746
auto Loc = NextToken.getLoc();
747747
auto Result = syntax::RawTokenSyntax::make(NextToken.getKind(),
748-
OwnedString(NextToken.getText()).copy(),
748+
OwnedString(NextToken.getText()),
749749
syntax::SourcePresence::Present,
750750
{LeadingTrivia}, {TrailingTrivia});
751751
LeadingTrivia.clear();

0 commit comments

Comments
 (0)