From 4104fe8ae92861d77b40adc78635915fbf6a1470 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 8 Jul 2015 22:27:54 +0000 Subject: Don't reject an archive with just a symbol table. It is pretty unambiguous how to interpret it and gnu ar accepts it too. llvm-svn: 241750 --- llvm/lib/Object/Archive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/Archive.cpp') diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp index d03c328ae3b..b9d949b4428 100644 --- a/llvm/lib/Object/Archive.cpp +++ b/llvm/lib/Object/Archive.cpp @@ -288,7 +288,7 @@ Archive::Archive(MemoryBufferRef Source, std::error_code &ec) ++i; if (i == e) { - ec = object_error::parse_failed; + ec = std::error_code(); return; } Name = i->getRawName(); -- cgit v1.2.3