mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-27 05:30:29 +00:00
RealFile - fix self-initialization warning in constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f2beaf914
commit
188f54b788
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user