[llvm] r374994 - RealFile - fix self-initialization warning in constructor.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 16 04:17:00 PDT 2019
Author: rksimon
Date: Wed Oct 16 04:16:59 2019
New Revision: 374994
URL: http://llvm.org/viewvc/llvm-project?rev=374994&view=rev
Log:
RealFile - fix self-initialization warning in constructor.
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=374994&r1=374993&r2=374994&view=diff
==============================================================================
--- llvm/trunk/lib/Support/VirtualFileSystem.cpp (original)
+++ llvm/trunk/lib/Support/VirtualFileSystem.cpp Wed Oct 16 04:16:59 2019
@@ -176,9 +176,9 @@ class RealFile : public File {
Status S;
std::string RealName;
- RealFile(file_t FD, StringRef NewName, StringRef NewRealPathName)
- : FD(FD), S(NewName, {}, {}, {}, {}, {},
- llvm::sys::fs::file_type::status_error, {}),
+ RealFile(file_t RawFD, StringRef NewName, StringRef NewRealPathName)
+ : FD(RawFD), S(NewName, {}, {}, {}, {}, {},
+ llvm::sys::fs::file_type::status_error, {}),
RealName(NewRealPathName.str()) {
assert(FD != kInvalidFile && "Invalid or inactive file descriptor");
}
More information about the llvm-commits
mailing list