Skip to content

Commit

Permalink
Fix performance-unnecessary-copy-initialization
Browse files Browse the repository at this point in the history
Summary: As title.

Reviewed By: thezhangwei

Differential Revision: D50897103

fbshipit-source-id: 143a76659b9e337d72d973102f292d423a965733
  • Loading branch information
agampe authored and facebook-github-bot committed Nov 2, 2023
1 parent 5dd0e99 commit 3f51958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/regalloc-fast/LiveInterval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ VRegAliveRangeInBlock get_check_cast_throw_targets_live_range(
const std::unordered_set<vreg_t>& vregs) {
VRegAliveRangeInBlock vreg_block_range;
const LivenessDomain& live_in = fixpoint_iter.get_live_in_vars_at(block);
auto elements = live_in.elements();
const auto& elements = live_in.elements();
for (auto vreg : vregs) {
if (!elements.contains(vreg)) {
LiveIntervalPoint first = LiveIntervalPoint::get_block_begin(block);
Expand Down

0 comments on commit 3f51958

Please sign in to comment.