DWARFYAML::emitDebugSections - fix use after std::move warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 20 Sep 2020 13:42:36 +0000 (14:42 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 20 Sep 2020 13:42:36 +0000 (14:42 +0100)
commit6bb912336804822cc4b09f6849f1fd7d12057132
tree40329a10d17af39ace960387ce9f3b73dd3d2a42
parent91720ee561b2da4161df6abaddfd8a677aebb504
DWARFYAML::emitDebugSections - fix use after std::move warnings. NFCI.

We were using Err after it had been moved into cantFail - avoid this by calling cantFail with Error::success() directly.
llvm/lib/ObjectYAML/DWARFEmitter.cpp