diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-25 00:22:11 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-25 00:22:11 +0000 |
commit | 6c1d0ed3073befa254076905fcba299b73053250 (patch) | |
tree | aa63a51883cd71cbe49ce945878405e89ea023f7 /include/clang/Basic/SourceManager.h | |
parent | 517791705e220b26bb307330fbb72566b516d095 (diff) | |
download | clang-6c1d0ed3073befa254076905fcba299b73053250.tar.gz |
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
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 4 |
1 files 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, |