[lld] r317637 - Fix unused variable error.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 15:43:01 PST 2017


Author: rafael
Date: Tue Nov  7 15:43:01 2017
New Revision: 317637

URL: http://llvm.org/viewvc/llvm-project?rev=317637&view=rev
Log:
Fix unused variable error.

Modified:
    lld/trunk/ELF/Filesystem.cpp

Modified: lld/trunk/ELF/Filesystem.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Filesystem.cpp?rev=317637&r1=317636&r2=317637&view=diff
==============================================================================
--- lld/trunk/ELF/Filesystem.cpp (original)
+++ lld/trunk/ELF/Filesystem.cpp Tue Nov  7 15:43:01 2017
@@ -56,7 +56,7 @@ void elf::unlinkAsync(StringRef Path) {
   // Instead we open the file and unlink it on this thread. The unlink is fast
   // since the open fd guarantees that it is not removing the last reference.
   int FD;
-  if (std::error_code EC = sys::fs::openFileForRead(Path, FD))
+  if (sys::fs::openFileForRead(Path, FD))
     return;
 
   sys::fs::remove(Path);




More information about the llvm-commits mailing list