[lld] r229997 - Driver: Fix an incorrect use of llvm::None
Justin Bogner
mail at justinbogner.com
Fri Feb 20 00:19:44 PST 2015
Author: bogner
Date: Fri Feb 20 02:19:43 2015
New Revision: 229997
URL: http://llvm.org/viewvc/llvm-project?rev=229997&view=rev
Log:
Driver: Fix an incorrect use of llvm::None
This function returns a bool, so llvm::None doesn't make sense here.
Modified:
lld/trunk/lib/Driver/WinLinkDriver.cpp
Modified: lld/trunk/lib/Driver/WinLinkDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkDriver.cpp?rev=229997&r1=229996&r2=229997&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkDriver.cpp (original)
+++ lld/trunk/lib/Driver/WinLinkDriver.cpp Fri Feb 20 02:19:43 2015
@@ -458,7 +458,7 @@ static bool parseDef(StringRef option, l
std::vector<moduledef::Directive *> &result) {
ErrorOr<std::unique_ptr<MemoryBuffer>> buf = MemoryBuffer::getFile(option);
if (!buf)
- return llvm::None;
+ return false;
moduledef::Lexer lexer(std::move(buf.get()));
moduledef::Parser parser(lexer, alloc);
return parser.parse(result);
More information about the llvm-commits
mailing list