[llvm] r291691 - [lib/Object] Unbreak build with -Werror (unused variable). NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 11 11:05:27 PST 2017
Author: davide
Date: Wed Jan 11 13:05:27 2017
New Revision: 291691
URL: http://llvm.org/viewvc/llvm-project?rev=291691&view=rev
Log:
[lib/Object] Unbreak build with -Werror (unused variable). NFCI.
Modified:
llvm/trunk/lib/Object/Decompressor.cpp
Modified: llvm/trunk/lib/Object/Decompressor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/Decompressor.cpp?rev=291691&r1=291690&r2=291691&view=diff
==============================================================================
--- llvm/trunk/lib/Object/Decompressor.cpp (original)
+++ llvm/trunk/lib/Object/Decompressor.cpp Wed Jan 11 13:05:27 2017
@@ -79,7 +79,7 @@ bool Decompressor::isGnuStyle(StringRef
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);
}
More information about the llvm-commits
mailing list