]> granicus.if.org Git - llvm/commitdiff
[lib/Object] Unbreak build with -Werror (unused variable). NFCI.
authorDavide Italiano <davide@freebsd.org>
Wed, 11 Jan 2017 19:05:27 +0000 (19:05 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 11 Jan 2017 19:05:27 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291691 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Object/Decompressor.cpp

index fc9beca4641850e71d01894f31b8419c8ab3be43..bca41fd9f487548f9167dd4b39cc7a1150639eca 100644 (file)
@@ -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);
 }