From: Rafael Espindola Date: Sun, 17 Aug 2014 23:31:27 +0000 (+0000) Subject: Use the pointer-like API of ErrorOr. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=329d3b87fb36de0db6df61047d9e19b74cc1c380;p=clang Use the pointer-like API of ErrorOr. Thanks to David Blaikie for the suggestion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215866 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ARCMigrate/ObjCMT.cpp b/lib/ARCMigrate/ObjCMT.cpp index 04d66f93b7..e4ff7d5e93 100644 --- a/lib/ARCMigrate/ObjCMT.cpp +++ b/lib/ARCMigrate/ObjCMT.cpp @@ -1940,7 +1940,7 @@ public: return true; llvm::SourceMgr SM; - Stream YAMLStream(std::move(FileBufOrErr.get()), SM); + Stream YAMLStream(std::move(*FileBufOrErr), SM); document_iterator I = YAMLStream.begin(); if (I == YAMLStream.end()) return true;