[memprof] Avoid meaningless pod copy
authorWu, Yingcong <yingcong.wu@intel.com>
Thu, 2 Mar 2023 01:36:37 +0000 (01:36 +0000)
committerSnehasish Kumar <snehasishk@google.com>
Thu, 2 Mar 2023 01:39:01 +0000 (01:39 +0000)
commit9a77a6f80252288d536b3aa471f241786a54068b
tree2ddb26da4a16b3c5a3b632dc30779bd66286525b
parent403926aefefb13553f89ad812b1e2385826a82ec
[memprof] Avoid meaningless pod copy

The pointer `Buffer` is not changed, so there is no need to use reference, and the `Pod` here should use reference to avoid meaningless copy.

Reviewed By: snehasish

Differential Revision: https://reviews.llvm.org/D145024
compiler-rt/lib/memprof/memprof_rawprofile.cpp