PECOFF: consume errors properly
authorSaleem Abdulrasool <abdulras@thebrowser.company>
Mon, 17 Apr 2023 14:52:38 +0000 (07:52 -0700)
committerSaleem Abdulrasool <abdulras@thebrowser.company>
Mon, 17 Apr 2023 14:53:54 +0000 (07:53 -0700)
commitd87cd45e4d855b57aed76dbd72c270ed152542ff
tree8fd99dc62bbbc7aedc9d0b98af4e8ff4609a17e6
parent7960993e4638c6243c4b37f05bb61b080fe13d43
PECOFF: consume errors properly

We would not ensure that the error is consumed in the case that logging
is disabled. Ensure that we properly drop the error on the floor or we
would re-trigger the checked failure.

Differential Revision: https://reviews.llvm.org/D147669
Reviewed By: sgraenitz
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp