Commit 9415b7d
committed
[Support] Fix -Wpessimizing-move in Mustache.cpp (NFC)
/llvm-project/llvm/lib/Support/Mustache.cpp:299:27:
error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
PrevToken.TokenBody = std::move(Unindented.str());
^
/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
PrevToken.TokenBody = std::move(Unindented.str());
^~~~~~~~~~ ~
1 error generated.1 parent 8f05f25 commit 9415b7d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
0 commit comments