Don't return error_code from a function that doesn't fail.
[oota-llvm.git] / tools / llvm-readobj / MachODumper.cpp
index 7365ad7396a041d819b83691f9a6ea90657fdf7b..049c9f5d8c1b386dbce5bba332f2443f617ae595 100644 (file)
@@ -463,8 +463,7 @@ void MachODumper::printRelocation(const MachOObjectFile *Obj,
                                   const RelocationRef &Reloc) {
   uint64_t Offset = Reloc.getOffset();
   SmallString<32> RelocName;
-  if (error(Reloc.getTypeName(RelocName)))
-    return;
+  Reloc.getTypeName(RelocName);
 
   DataRefImpl DR = Reloc.getRawDataRefImpl();
   MachO::any_relocation_info RE = Obj->getRelocation(DR);