Use error_code() instead of error_code::succes()
[oota-llvm.git] / include / llvm / Object / ELF.h
index ee97d4e05d69a16107150cde156498ccdda7b34e..cb3a32a6097a0560fce719a38087accb2f312c25 100644 (file)
@@ -744,7 +744,7 @@ ELFFile<ELFT>::ELFFile(MemoryBuffer *Object, error_code &ec)
     }
   }
 
-  ec = error_code::success();
+  ec = error_code();
 }
 
 // Get the symbol table index in the symtab section given a symbol