summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Windows/Path.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
index c7582894fa9..d8a14b41cb2 100644
--- a/llvm/lib/Support/Windows/Path.inc
+++ b/llvm/lib/Support/Windows/Path.inc
@@ -857,12 +857,11 @@ std::error_code openFileForRead(const Twine &Name, int &ResultFD,
}
// Fetch the real name of the file, if the user asked
- std::error_code EC;
if (RealPath)
- EC = realPathFromHandle(H, *RealPath);
+ realPathFromHandle(H, *RealPath);
ResultFD = FD;
- return EC;
+ return std::error_code();
}
std::error_code openFileForWrite(const Twine &Name, int &ResultFD,
OpenPOWER on IntegriCloud