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:
3901dd3
)
Fix compilation warning about unused variable [NFC]
author
Mikael Holmen
<mikael.holmen@ericsson.com>
Mon, 3 Jun 2019 10:50:41 +0000
(10:50 +0000)
committer
Mikael Holmen
<mikael.holmen@ericsson.com>
Mon, 3 Jun 2019 10:50:41 +0000
(10:50 +0000)
llvm-svn: 362379
clang/lib/Driver/Driver.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Driver/Driver.cpp
b/clang/lib/Driver/Driver.cpp
index a57c66403a28a773f7d2dd105bd3b2a31641206a..e28ff55147a0ed23826062f33eb190f9c75d64dd 100644
(file)
--- a/
clang/lib/Driver/Driver.cpp
+++ b/
clang/lib/Driver/Driver.cpp
@@
-1007,7
+1007,7
@@
Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
// Check for working directory option before accessing any files
if (Arg *WD = Args.getLastArg(options::OPT_working_directory))
- if (
std::error_code EC =
VFS->setCurrentWorkingDirectory(WD->getValue()))
+ if (VFS->setCurrentWorkingDirectory(WD->getValue()))
Diag(diag::err_drv_unable_to_set_working_directory) << WD->getValue();
// FIXME: This stuff needs to go into the Compilation, not the driver.