r215866 - Use the pointer-like API of ErrorOr.
Rafael Espindola
rafael.espindola at gmail.com
Sun Aug 17 16:31:27 PDT 2014
Author: rafael
Date: Sun Aug 17 18:31:27 2014
New Revision: 215866
URL: http://llvm.org/viewvc/llvm-project?rev=215866&view=rev
Log:
Use the pointer-like API of ErrorOr.
Thanks to David Blaikie for the suggestion.
Modified:
cfe/trunk/lib/ARCMigrate/ObjCMT.cpp
Modified: cfe/trunk/lib/ARCMigrate/ObjCMT.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/ObjCMT.cpp?rev=215866&r1=215865&r2=215866&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/ObjCMT.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/ObjCMT.cpp Sun Aug 17 18:31:27 2014
@@ -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;
More information about the cfe-commits
mailing list