From d8d3e17b8b07a34e6118a8b6cd66aea657265531 Mon Sep 17 00:00:00 2001 From: Mikael Holmen Date: Mon, 3 Jun 2019 10:50:41 +0000 Subject: [PATCH] Fix compilation warning about unused variable [NFC] llvm-svn: 362379 --- clang/lib/Driver/Driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index a57c664..e28ff55 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1007,7 +1007,7 @@ Compilation *Driver::BuildCompilation(ArrayRef 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. -- 2.7.4