aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-06-30 16:41:03 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-06-30 16:41:03 +0000
commitd57b7ff9bebc4c45f325fc1be6f238cfcd4c3732 (patch)
tree801b8fb6b907c116af412a7e078a88bb087acc80 /include/clang/Basic/SourceManager.h
parenta1a38741fdf676af3174ea6f465eb07da003e761 (diff)
Replace an unreachable error path with an assert
(SourceManager::createFileID cannot return an invalid file ID). Also update a comment to reflect this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index 4227add567..f2a8bf3515 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -500,8 +500,8 @@ public:
//===--------------------------------------------------------------------===//
/// createFileID - Create a new FileID that represents the specified file
- /// being #included from the specified IncludePosition. This returns 0 on
- /// error and translates NULL into standard input.
+ /// being #included from the specified IncludePosition. This translates NULL
+ /// into standard input.
/// PreallocateID should be non-zero to specify which pre-allocated,
/// lazily computed source location is being filled in by this operation.
FileID createFileID(const FileEntry *SourceFile, SourceLocation IncludePos,