summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r--clang/lib/Basic/SourceManager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp
index 9f6624c0b7e..d7d2c84a4c1 100644
--- a/clang/lib/Basic/SourceManager.cpp
+++ b/clang/lib/Basic/SourceManager.cpp
@@ -43,8 +43,7 @@ const ContentCache* SourceManager::getContentCache(const FileEntry *FileEnt) {
// Nope, get information.
const MemoryBuffer *File =
- MemoryBuffer::getFile(FileEnt->getName(), strlen(FileEnt->getName()), 0,
- FileEnt->getSize());
+ MemoryBuffer::getFile(FileEnt->getName(), 0, FileEnt->getSize());
if (File == 0)
return 0;
OpenPOWER on IntegriCloud