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 dpankratz committed Apr 24, 2020
1 parent 283b05c commit 216b717
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 216b717

Please sign in to comment.