[llvm] r285921 - Return existing error code.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 07:53:26 PDT 2016
Author: rafael
Date: Thu Nov 3 09:53:25 2016
New Revision: 285921
URL: http://llvm.org/viewvc/llvm-project?rev=285921&view=rev
Log:
Return existing error code.
Should fix the -Werror bots.
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=285921&r1=285920&r2=285921&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Thu Nov 3 09:53:25 2016
@@ -162,7 +162,7 @@ public:
uint32_t Index) const {
auto SymtabOrErr = symbols(Sec);
if (std::error_code EC = SymtabOrErr.getError())
- return object_error::parse_failed;
+ return EC;
Elf_Sym_Range Symbols = *SymtabOrErr;
if (Index >= Symbols.size())
return object_error::invalid_symbol_index;
More information about the llvm-commits
mailing list