]> granicus.if.org Git - llvm/commit
[llvm-readobj] Unwrap the value first to avoid the error
authorPetr Hosek <phosek@chromium.org>
Sat, 17 Aug 2019 00:07:26 +0000 (00:07 +0000)
committerPetr Hosek <phosek@chromium.org>
Sat, 17 Aug 2019 00:07:26 +0000 (00:07 +0000)
commitd91d043465fd5334c1cdb5d4d2701b49fffd7a00
tree6ea831889ced41c60359ed1e06da13feb3c412a2
parent42e3d15bdf8242a0cef1f8bde8484c74ebc7cd59
[llvm-readobj] Unwrap the value first to avoid the error

This addresses the issue introduced in r369169, we need to unwrap
the value first before we can check whether it's empty. This also
swaps the two branches to put the common path first which should
be NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369177 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/gnu-notes.test
tools/llvm-readobj/ELFDumper.cpp