Expand `auto` whose real type is not obvious from context.

llvm-svn: 248876
This commit is contained in:
Rui Ueyama 2015-09-30 02:42:27 +00:00
parent 90b3daaa5c
commit d0e5aebf3a
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ SymbolBody *elf2::ObjectFile<ELFT>::createSymbolBody(StringRef StringTable,
}
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);