Use the pointer-like API of ErrorOr.

Thanks to David Blaikie for the suggestion.

llvm-svn: 215866
This commit is contained in:
Rafael Espindola 2014-08-17 23:31:27 +00:00
parent 91ac8dfa9d
commit 8d04452973
1 changed files with 1 additions and 1 deletions

View File

@ -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;