[flang] Improve error message for move_alloc
authorDavid Truby <david.truby@arm.com>
Mon, 30 Jan 2023 15:48:45 +0000 (15:48 +0000)
committerDavid Truby <david.truby@arm.com>
Tue, 31 Jan 2023 14:59:02 +0000 (14:59 +0000)
commit2526013a2266f6eb3ffa743895f84705727aef0d
tree009ccc3945f04d0f3a657cb9881f73cde4ad3f5e
parentab0116e2f05c6156c4bc3d35986de1e98cc27016
[flang] Improve error message for move_alloc

This patch improves the error message when MOVE_ALLOC is passed the same
allocated allocatable as both the to and from arguments.

Differential Revision: https://reviews.llvm.org/D142899
flang/include/flang/Runtime/magic-numbers.h
flang/runtime/allocatable.cpp
flang/runtime/stat.cpp
flang/runtime/stat.h
flang/unittests/Runtime/Allocatable.cpp