summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-16 11:16:59 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-16 11:16:59 +0000
commit115a6ecdf173d116b253617ee529efac1ff6f2bb (patch)
tree46a7225ab6d29b85abc0172c91c928cd607c4835
parent79769a4475b37fa011203c688985e36b972328ff (diff)
downloadbcm5719-llvm-115a6ecdf173d116b253617ee529efac1ff6f2bb.tar.gz
bcm5719-llvm-115a6ecdf173d116b253617ee529efac1ff6f2bb.zip
RealFile - fix self-initialization warning in constructor.
llvm-svn: 374994
-rw-r--r--llvm/lib/Support/VirtualFileSystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp
index 7c3d04817a3..ac10baa5c7e 100644
--- a/llvm/lib/Support/VirtualFileSystem.cpp
+++ b/llvm/lib/Support/VirtualFileSystem.cpp
@@ -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");
}
OpenPOWER on IntegriCloud