summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Decompressor.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-01-11 19:05:27 +0000
committerDavide Italiano <davide@freebsd.org>2017-01-11 19:05:27 +0000
commit3b5edf4fa7d971117c6623348227758767b6a325 (patch)
tree28faf80d67db365d3be6b34d91a1ff903775267c /llvm/lib/Object/Decompressor.cpp
parentfd627bf86cf82e5302da427eda7d52f5fbdcf7cb (diff)
downloadbcm5719-llvm-3b5edf4fa7d971117c6623348227758767b6a325.tar.gz
bcm5719-llvm-3b5edf4fa7d971117c6623348227758767b6a325.zip
[lib/Object] Unbreak build with -Werror (unused variable). NFCI.
llvm-svn: 291691
Diffstat (limited to 'llvm/lib/Object/Decompressor.cpp')
-rw-r--r--llvm/lib/Object/Decompressor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/Decompressor.cpp b/llvm/lib/Object/Decompressor.cpp
index fc9beca4641..bca41fd9f48 100644
--- a/llvm/lib/Object/Decompressor.cpp
+++ b/llvm/lib/Object/Decompressor.cpp
@@ -79,7 +79,7 @@ bool Decompressor::isGnuStyle(StringRef Name) {
bool Decompressor::isCompressed(const object::SectionRef &Section) {
StringRef Name;
- if (std::error_code E = Section.getName(Name))
+ if (Section.getName(Name))
return false;
return Section.isCompressed() || isGnuStyle(Name);
}
OpenPOWER on IntegriCloud