summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-04-25 00:22:11 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-04-25 00:22:11 +0000
commit1d6d98809c0f162acbfdaabe0c360e1215b06273 (patch)
tree64fe6723e4449a24f51536220208323040810035
parent4f88388c0bc7f5926e880fb6f75ec909c6d7bc88 (diff)
downloadbcm5719-llvm-1d6d98809c0f162acbfdaabe0c360e1215b06273.tar.gz
bcm5719-llvm-1d6d98809c0f162acbfdaabe0c360e1215b06273.zip
Fix typo in comment in r312851.
Thanks to Nico Weber for pointing this out! llvm-svn: 359158
-rw-r--r--clang/include/clang/Basic/SourceManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/SourceManager.h b/clang/include/clang/Basic/SourceManager.h
index a9882839958..484889ea544 100644
--- a/clang/include/clang/Basic/SourceManager.h
+++ b/clang/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,
OpenPOWER on IntegriCloud