[all-commits] [llvm/llvm-project] 1f8b2b: [CGData] Fix -Wpessimizing-move in CodeGenDataRead...
Jie Fu (傅杰) via All-commits
all-commits at lists.llvm.org
Mon Jul 22 18:35:12 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f8b2b146141f3563085a1acb77deb50857a636d
https://github.com/llvm/llvm-project/commit/1f8b2b146141f3563085a1acb77deb50857a636d
Author: Jie Fu <jiefu at tencent.com>
Date: 2024-07-23 (Tue, 23 Jul 2024)
Changed paths:
M llvm/lib/CodeGenData/CodeGenDataReader.cpp
Log Message:
-----------
[CGData] Fix -Wpessimizing-move in CodeGenDataReader.cpp (NFC)
/llvm-project/llvm/lib/CodeGenData/CodeGenDataReader.cpp:78:12:
error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
return std::move(E);
^
/llvm-project/llvm/lib/CodeGenData/CodeGenDataReader.cpp:78:12: note: remove std::move call here
return std::move(E);
^~~~~~~~~~ ~
1 error generated.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list