From 6c1d0ed3073befa254076905fcba299b73053250 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 25 Apr 2019 00:22:11 +0000 Subject: [PATCH] Fix typo in comment in r312851. Thanks to Nico Weber for pointing this out! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359158 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/SourceManager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index a988283995..484889ea54 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -841,8 +841,8 @@ public: /// Create a new FileID that represents the specified memory buffer. /// - /// This does no caching of the buffer and takes ownership of the - /// MemoryBuffer, so only pass a MemoryBuffer to this once. + /// This does not take ownership of the MemoryBuffer. The memory buffer must + /// outlive the SourceManager. FileID createFileID(UnownedTag, const llvm::MemoryBuffer *Buffer, SrcMgr::CharacteristicKind FileCharacter = SrcMgr::C_User, int LoadedID = 0, unsigned LoadedOffset = 0, -- 2.40.0