Skip to content

Commit

Permalink
[Fix][VM] Fix copy constructor (apache#5237)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav1086 authored and zhiics committed Apr 17, 2020
1 parent 5a17d9f commit c326058
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 c326058

Please sign in to comment.