[lld] r248876 - Expand `auto` whose real type is not obvious from context.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 19:42:27 PDT 2015
Author: ruiu
Date: Tue Sep 29 21:42:27 2015
New Revision: 248876
URL: http://llvm.org/viewvc/llvm-project?rev=248876&view=rev
Log:
Expand `auto` whose real type is not obvious from context.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=248876&r1=248875&r2=248876&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Tue Sep 29 21:42:27 2015
@@ -181,7 +181,7 @@ SymbolBody *elf2::ObjectFile<ELFT>::crea
}
void ArchiveFile::parse() {
- auto ArchiveOrErr = Archive::create(MB);
+ ErrorOr<std::unique_ptr<Archive>> ArchiveOrErr = Archive::create(MB);
error(ArchiveOrErr, "Failed to parse archive");
File = std::move(*ArchiveOrErr);
More information about the llvm-commits
mailing list