Skip to content

Commit

Permalink
Fix compilation warning about unused variable [NFC]
Browse files Browse the repository at this point in the history
llvm-svn: 362379
  • Loading branch information
mikaelholmen committed Jun 3, 2019
1 parent 3901dd3 commit d8d3e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d8d3e17

Please sign in to comment.