[PATCH] D14786: [llvm-profdata] Add merge() to InstrProfRecord
David Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 20:43:29 PST 2015
davidxl added inline comments.
================
Comment at: lib/ProfileData/InstrProfWriter.cpp:111
@@ -139,1 +110,3 @@
+ return MergeResult;
+ }
}
----------------
davidxl wrote:
> else {
> Dest = std::forward<InstrProfRecord>(I);
> }
>
> the std::forward is missing in the old code too which is less efficient.
Sorry, should be
Dest = std::move(I) or
Dest = static_cast<InstrProfRecord&&>(I)
http://reviews.llvm.org/D14786
More information about the llvm-commits
mailing list