r362379 - Fix compilation warning about unused variable [NFC]
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 3 03:50:41 PDT 2019
Author: uabelho
Date: Mon Jun 3 03:50:41 2019
New Revision: 362379
URL: http://llvm.org/viewvc/llvm-project?rev=362379&view=rev
Log:
Fix compilation warning about unused variable [NFC]
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=362379&r1=362378&r2=362379&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Mon Jun 3 03:50:41 2019
@@ -1007,7 +1007,7 @@ Compilation *Driver::BuildCompilation(Ar
// 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.
More information about the cfe-commits
mailing list