From c76cbd8d1096126bb2b16d83ac3039af3f1128b8 Mon Sep 17 00:00:00 2001 From: ga Date: Sun, 5 Apr 2020 16:45:43 -0400 Subject: [PATCH] [Fix][VM] Fix copy constructor (#5237) --- src/runtime/vm/vm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/vm/vm.cc b/src/runtime/vm/vm.cc index af3a86c..fedbbe9 100644 --- a/src/runtime/vm/vm.cc +++ b/src/runtime/vm/vm.cc @@ -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(instr.alloc_tensor.shape, instr.alloc_tensor.ndim); -- 2.7.4