summaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2019-06-03 10:50:41 +0000
committerMikael Holmen <mikael.holmen@ericsson.com>2019-06-03 10:50:41 +0000
commit6137a708dd64da59e28c5ede4fa3157d25613823 (patch)
tree2efd0201f25767a3fabfccfefe54769bc36efd23 /lib/Driver/Driver.cpp
parent396b66e348f1ade4a0ae032e173f9269596a5556 (diff)
downloadclang-6137a708dd64da59e28c5ede4fa3157d25613823.tar.gz
Fix compilation warning about unused variable [NFC]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index a57c66403a..e28ff55147 100644
--- a/lib/Driver/Driver.cpp
+++ b/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.