From: Edward O'Callaghan Date: Mon, 2 Nov 2009 21:25:11 +0000 (+0000) Subject: Add note to FIXME about PR5371. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3963e756e35d61e4a0c973f301a068c9bfd2f346;p=clang Add note to FIXME about PR5371. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85825 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index 962cb4c42a..f8e05e4962 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -52,6 +52,7 @@ const llvm::MemoryBuffer *ContentCache::getBuffer() const { if (!Buffer && Entry) { // FIXME: Should we support a way to not have to do this check over // and over if we cannot open the file? + // Yes, PR5371. Buffer = MemoryBuffer::getFile(Entry->getName(), 0, Entry->getSize()); if (isTruncated()) const_cast(this)->truncateAt(TruncateAtLine,