Skip to content

Commit

Permalink
[Fix][VM] Fix copy constructor (#5237)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav1086 authored Apr 5, 2020
1 parent b5352ee commit c76cbd8
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 @@ -175,7 +175,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 c76cbd8

Please sign in to comment.