Skip to content

Commit

Permalink
[BACKPORT-0.6][Fix][VM] Fix copy constructor (#5867)
Browse files Browse the repository at this point in the history
Co-authored-by: ga <[email protected]>
  • Loading branch information
yzhliu and gaurav1086 authored Jun 21, 2020
1 parent 05f38c5 commit b9b2e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/vm/vm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Instruction& Instruction::operator=(const Instruction& instr) {
this->result = instr.result;
return *this;
case Opcode::AllocTensor:
this->alloc_tensor.storage = this->alloc_tensor.storage;
this->alloc_tensor.storage = instr.alloc_tensor.storage;
this->alloc_tensor.ndim = instr.alloc_tensor.ndim;
this->alloc_tensor.shape = Duplicate<int64_t>(instr.alloc_tensor.shape,
instr.alloc_tensor.ndim);
Expand Down

0 comments on commit b9b2e47

Please sign in to comment.