Fix assertion in ObjectFileELF
authorPavel Labath <labath@google.com>
Wed, 17 Jan 2018 14:40:25 +0000 (14:40 +0000)
committerPavel Labath <labath@google.com>
Wed, 17 Jan 2018 14:40:25 +0000 (14:40 +0000)
commitb424de390ee3fe95c7a84bed3114feea941407b5
treecd6eb4b20d2f17ab73b5ec122210ad3b187fe3c8
parentf2c29571da7165420c7de600b220fb416ce8c73d
Fix assertion in ObjectFileELF

In D40616 I (mistakenly) assumed that logging an llvm::Error would clear
it. This of course is only true if logging is actually enabled.

This fixes the assertion by manually clearing the error, but it raises
the point of whether we need a special error-clearing logging primitive.

llvm-svn: 322664
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp