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!

llvm-svn: 359158

clang/include/clang/Basic/SourceManager.h

index a988283..484889e 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,