[mlir][memref] Fix memref.copy of scalar memref
authorStephan Herhut <herhut@google.com>
Fri, 14 Jan 2022 15:01:42 +0000 (16:01 +0100)
committerStephan Herhut <herhut@google.com>
Fri, 14 Jan 2022 15:13:12 +0000 (16:13 +0100)
commitaa3cabe3cbe8aec83e8966a5c95085f30f3ece64
tree06b7d2a73cd2bd0edd2ae1d3da29a90d66802bc0
parent538ffd4a24b4189202e01378e0de947dfe9c4d74
[mlir][memref] Fix memref.copy of scalar memref

Also fix a memory leak in the test while at it.

Differential Revision: https://reviews.llvm.org/D117314
mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
mlir/test/mlir-cpu-runner/copy.mlir