[XCOFF] Fix the program abortion issue in XCOFFObjectFile::getSectionContents.
authorEsme-Yi <esme.yi@ibm.com>
Mon, 13 Sep 2021 07:54:33 +0000 (07:54 +0000)
committerEsme-Yi <esme.yi@ibm.com>
Mon, 13 Sep 2021 07:54:33 +0000 (07:54 +0000)
commitea81898d0fe2633fdef44822a8578924be4acd6c
tree6a136ff8c7294a80afb9dce28a33a7e12d5ae295
parent65ad09da0ea7b947ce4bfa96dee00a53230f4cf9
[XCOFF] Fix the program abortion issue in XCOFFObjectFile::getSectionContents.

Summary: Use std::move(E) to avoid `Program aborted due to an unhandled Error`

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D109567
llvm/lib/Object/XCOFFObjectFile.cpp