Small fix for how std::move is used in constructors
PiperOrigin-RevId: 158141564
This commit is contained in:
parent
2a61c1652e
commit
2e7e1d57bd
@ -70,7 +70,7 @@ bool XlaCompiler::Argument::operator==(
|
||||
}
|
||||
|
||||
XlaCompiler::XlaCompiler(XlaCompiler::Options options)
|
||||
: options_(std::move(options)),
|
||||
: options_(options),
|
||||
initialization_status_(Status::OK()),
|
||||
next_step_id_(1),
|
||||
device_(
|
||||
|
@ -28,7 +28,7 @@ Computation::Computation(ServiceInterface* parent,
|
||||
: handle_(handle), parent_(parent) {}
|
||||
|
||||
Computation::Computation(Computation&& computation)
|
||||
: handle_(computation.handle_), parent_(computation.parent_) {
|
||||
: handle_(std::move(computation.handle_)), parent_(computation.parent_) {
|
||||
computation.ResetWithoutFreeing();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user