[llvm] r351069 - [VFS] Fix unused variable warning. NFC
Sam McCall via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 14 06:13:24 PST 2019
Author: sammccall
Date: Mon Jan 14 06:13:24 2019
New Revision: 351069
URL: http://llvm.org/viewvc/llvm-project?rev=351069&view=rev
Log:
[VFS] Fix unused variable warning. NFC
Modified:
llvm/trunk/lib/Support/VirtualFileSystem.cpp
Modified: llvm/trunk/lib/Support/VirtualFileSystem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/VirtualFileSystem.cpp?rev=351069&r1=351068&r2=351069&view=diff
==============================================================================
--- llvm/trunk/lib/Support/VirtualFileSystem.cpp (original)
+++ llvm/trunk/lib/Support/VirtualFileSystem.cpp Mon Jan 14 06:13:24 2019
@@ -243,7 +243,7 @@ public:
SmallString<128> PWD, RealPWD;
if (llvm::sys::fs::current_path(PWD))
return; // Awful, but nothing to do here.
- if (auto Err = llvm::sys::fs::real_path(PWD, RealPWD))
+ if (llvm::sys::fs::real_path(PWD, RealPWD))
WD = {PWD, PWD};
else
WD = {PWD, RealPWD};
More information about the llvm-commits
mailing list