Skip to content

Commit ab8712a

Browse files
committed
fix gcc initialization warnings
1 parent 8ba1c5a commit ab8712a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Support/Mustache.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ void stripTokenAhead(SmallVectorImpl<Token> &Tokens, size_t Idx) {
276276
StringRef NextTokenBody = NextToken.TokenBody;
277277
// Cut off the leading newline which could be \n or \r\n.
278278
if (NextTokenBody.starts_with("\r\n"))
279-
NextToken.TokenBody = std::move(NextTokenBody.substr(2).str());
279+
NextToken.TokenBody = NextTokenBody.substr(2).str();
280280
else if (NextTokenBody.starts_with("\n"))
281-
NextToken.TokenBody = std::move(NextTokenBody.substr(1).str());
281+
NextToken.TokenBody = NextTokenBody.substr(1).str();
282282
}
283283

284284
// Adjust previous token body if there no text behind.
@@ -783,9 +783,9 @@ Template &Template::operator=(Template &&Other) noexcept {
783783
Lambdas = std::move(Other.Lambdas);
784784
SectionLambdas = std::move(Other.SectionLambdas);
785785
Escapes = std::move(Other.Escapes);
786-
Tree = Other.Tree;
787786
AstAllocator = std::move(Other.AstAllocator);
788787
RenderAllocator = std::move(Other.RenderAllocator);
788+
Tree = Other.Tree;
789789
Other.Tree = nullptr;
790790
}
791791
return *this;

0 commit comments

Comments
 (0)