]> granicus.if.org Git - clang/commitdiff
Fix typo in comment in r312851.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 25 Apr 2019 00:22:11 +0000 (00:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 25 Apr 2019 00:22:11 +0000 (00:22 +0000)
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

index a9882839958d2b71e5f2adb54411b7cea8bd3d9e..484889ea544411a3267c9665bc5f8f2120e9c59d 100644 (file)
@@ -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,