diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-08 22:27:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-08 22:27:54 +0000 |
commit | 4104fe8ae92861d77b40adc78635915fbf6a1470 (patch) | |
tree | e24d8659320d601a4af19355e8f39c2253da91db /llvm/lib/Object/Archive.cpp | |
parent | 1eb778fc2b08103bd60c1561654e06e8087d4c46 (diff) | |
download | llvm-4104fe8ae92861d77b40adc78635915fbf6a1470.zip llvm-4104fe8ae92861d77b40adc78635915fbf6a1470.tar.gz llvm-4104fe8ae92861d77b40adc78635915fbf6a1470.tar.bz2 |
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
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
-rw-r--r-- | llvm/lib/Object/Archive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp index d03c328..b9d949b 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(); |