summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-06 14:45:16 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-06 14:45:16 +0000
commit1b8dbe3738c78240ffdbd67a556d464309b8f504 (patch)
tree658f53aee31cb86c725114b44fa7e5f8af1df64d /clang/lib/Basic/VirtualFileSystem.cpp
parentcac8fc2329b8ee623c42944823f88b401a747ada (diff)
downloadbcm5719-llvm-1b8dbe3738c78240ffdbd67a556d464309b8f504.tar.gz
bcm5719-llvm-1b8dbe3738c78240ffdbd67a556d464309b8f504.zip
[VFS] Put the incoming name in the file status to make InMemoryFS behave more like a real FS.
llvm-svn: 249409
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
-rw-r--r--clang/lib/Basic/VirtualFileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp
index 5486331d4af..b3805b2ff92 100644
--- a/clang/lib/Basic/VirtualFileSystem.cpp
+++ b/clang/lib/Basic/VirtualFileSystem.cpp
@@ -501,7 +501,7 @@ void InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime,
if (I == E) {
// End of the path, create a new file.
// FIXME: expose the status details in the interface.
- Status Stat(Path, getNextVirtualUniqueID(),
+ Status Stat(P.str(), getNextVirtualUniqueID(),
llvm::sys::TimeValue(ModificationTime, 0), 0, 0,
Buffer->getBufferSize(),
llvm::sys::fs::file_type::regular_file,
OpenPOWER on IntegriCloud