Fix unused variable error.

llvm-svn: 317637
diff --git a/lld/ELF/Filesystem.cpp b/lld/ELF/Filesystem.cpp
index ae4519a..323425c 100644
--- a/lld/ELF/Filesystem.cpp
+++ b/lld/ELF/Filesystem.cpp
@@ -56,7 +56,7 @@
   // 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);