Skip to content

Commit

Permalink
sl: use std::move() where appropriate
Browse files Browse the repository at this point in the history
Suggested by Coverity.

Closes: #91
  • Loading branch information
kdudka committed Dec 5, 2023
1 parent b0679a8 commit baa880d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sl/cont_shape.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ bool ImpliedShapeDetector::indexShape(SymHeap &sh, const Shape &shape)
/* props */ shape.props,
/* type */ sh.objEstimatedType(beg),
/* size */ sh.objSize(beg),
/* headPtrs */ headPtrs
/* headPtrs */ std::move(headPtrs)
};
plist_.push_back(sp);

Expand Down
2 changes: 1 addition & 1 deletion sl/fixed_point_proxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void plotFixedPointOfFnc(PlotData &plot, const GlobalState &fncState)
recorder.flush(&rewriter);

// plot the annotated input CFG
plotFncCore(plot, fncState, varByShape, capture, heapSet);
plotFncCore(plot, fncState, varByShape, capture, std::move(heapSet));

if (cfgOrig.size() < 16) {
// plot the original CFG-only subgraph
Expand Down

0 comments on commit baa880d

Please sign in to comment.