Skip to content

Commit

Permalink
Frame: CallInfo: Return as const reference
Browse files Browse the repository at this point in the history
Summary: Since `CallInfo` is now an object, treat it like how we treat other objects in `Frame`.

Reviewed By: anwesht

Differential Revision: D48247555

fbshipit-source-id: 0d2e5f59cce39fa9041768ec49fc9d574441075d
  • Loading branch information
Yuh Shin Ong authored and facebook-github-bot committed Aug 14, 2023
1 parent cc5057b commit db577ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Frame final : public sparta::AbstractDomain<Frame> {
via_type_of_ports_(std::move(via_type_of_ports)),
via_value_of_ports_(std::move(via_value_of_ports)),
canonical_names_(std::move(canonical_names)),
call_info_(call_info),
call_info_(std::move(call_info)),
output_paths_(std::move(output_paths)),
extra_traces_(std::move(extra_traces)) {
mt_assert(kind_ != nullptr);
Expand Down Expand Up @@ -224,7 +224,7 @@ class Frame final : public sparta::AbstractDomain<Frame> {
return field_origins_;
}

CallInfo call_info() const {
const CallInfo& call_info() const {
return call_info_;
}

Expand Down

0 comments on commit db577ea

Please sign in to comment.