| 2029 | MutableLiteralBase::~MutableLiteralBase() {} |
| 2030 | |
| 2031 | MutableBorrowingLiteral::MutableBorrowingLiteral( |
| 2032 | const MutableBorrowingLiteral& literal) |
| 2033 | : MutableLiteralBase() { |
| 2034 | shape_ = absl::make_unique<Shape>(literal.shape()); |
| 2035 | CHECK(LayoutUtil::HasLayout(*shape_)); |
| 2036 | |
| 2037 | root_piece_ = new Piece(); |
| 2038 | root_piece_->set_subshape(shape_.get()); |
| 2039 | |
| 2040 | CopyPieceSubtree(*shape_, &literal.root_piece(), root_piece_); |
| 2041 | } |
| 2042 | |
| 2043 | MutableBorrowingLiteral& MutableBorrowingLiteral::operator=( |
| 2044 | const MutableBorrowingLiteral& literal) { |
nothing calls this directly
no test coverage detected