projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad1ef04
)
Driver: Fix an incorrect use of llvm::None
author
Justin Bogner
<mail@justinbogner.com>
Fri, 20 Feb 2015 08:19:43 +0000
(08:19 +0000)
committer
Justin Bogner
<mail@justinbogner.com>
Fri, 20 Feb 2015 08:19:43 +0000
(08:19 +0000)
This function returns a bool, so llvm::None doesn't make sense here.
llvm-svn: 229997
lld/lib/Driver/WinLinkDriver.cpp
patch
|
blob
|
history
diff --git
a/lld/lib/Driver/WinLinkDriver.cpp
b/lld/lib/Driver/WinLinkDriver.cpp
index
de6b926
..
1baa486
100644
(file)
--- a/
lld/lib/Driver/WinLinkDriver.cpp
+++ b/
lld/lib/Driver/WinLinkDriver.cpp
@@
-458,7
+458,7
@@
static bool parseDef(StringRef option, llvm::BumpPtrAllocator &alloc,
std::vector<moduledef::Directive *> &result) {
ErrorOr<std::unique_ptr<MemoryBuffer>> buf = MemoryBuffer::getFile(option);
if (!buf)
- return
llvm::Non
e;
+ return
fals
e;
moduledef::Lexer lexer(std::move(buf.get()));
moduledef::Parser parser(lexer, alloc);
return parser.parse(result);