parent
1c66e8a6b7
commit
06231460b3
|
@ -52,6 +52,7 @@ const llvm::MemoryBuffer *ContentCache::getBuffer() const {
|
||||||
if (!Buffer && Entry) {
|
if (!Buffer && Entry) {
|
||||||
// FIXME: Should we support a way to not have to do this check over
|
// FIXME: Should we support a way to not have to do this check over
|
||||||
// and over if we cannot open the file?
|
// and over if we cannot open the file?
|
||||||
|
// Yes, PR5371.
|
||||||
Buffer = MemoryBuffer::getFile(Entry->getName(), 0, Entry->getSize());
|
Buffer = MemoryBuffer::getFile(Entry->getName(), 0, Entry->getSize());
|
||||||
if (isTruncated())
|
if (isTruncated())
|
||||||
const_cast<ContentCache *>(this)->truncateAt(TruncateAtLine,
|
const_cast<ContentCache *>(this)->truncateAt(TruncateAtLine,
|
||||||
|
|
Loading…
Reference in New Issue