File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ class alignas(1 << SyntaxAlignInBits) SyntaxParsingContext {
300
300
return SyntaxNode (std::move (rawNode));
301
301
}
302
302
303
- ParsedTokenSyntax && popToken ();
303
+ ParsedTokenSyntax popToken ();
304
304
305
305
// / Create a node using the tail of the collected parts. The number of parts
306
306
// / is automatically determined from \c Kind. Node: limited number of \c Kind
Original file line number Diff line number Diff line change @@ -163,8 +163,9 @@ const SyntaxParsingContext *SyntaxParsingContext::getRoot() const {
163
163
return Curr;
164
164
}
165
165
166
- ParsedTokenSyntax &&SyntaxParsingContext::popToken() {
167
- return std::move (popIf<ParsedTokenSyntax>().getValue ());
166
+ ParsedTokenSyntax SyntaxParsingContext::popToken () {
167
+ auto tok = popIf<ParsedTokenSyntax>();
168
+ return std::move (tok.getValue ());
168
169
}
169
170
170
171
// / Add Token with Trivia to the parts.
You can’t perform that action at this time.
0 commit comments