From 030d7a300468c82976a13c752a6b836b8010f9c7 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 3 Nov 2015 01:32:40 +0000 Subject: [PATCH] Don't implicitly construct a Archive::child_iterator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251878 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-nm/llvm-nm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 5cf6b4fb2ce..94866291899 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -952,10 +952,10 @@ static void dumpSymbolNamesFromFile(std::string &Filename) { if (I != E) { outs() << "Archive map\n"; for (; I != E; ++I) { - ErrorOr C = I->getMember(); + ErrorOr C = I->getMember(); if (error(C.getError())) return; - ErrorOr FileNameOrErr = C.get()->getName(); + ErrorOr FileNameOrErr = C->getName(); if (error(FileNameOrErr.getError())) return; StringRef SymName = I->getName(); -- 2.34.1