forked from OSchip/llvm-project
Use the pointer-like API of ErrorOr.
Thanks to David Blaikie for the suggestion. llvm-svn: 215866
This commit is contained in:
parent
91ac8dfa9d
commit
8d04452973
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue