diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-02 04:14:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-02 04:14:33 +0000 |
commit | 4cabcfea26bc3465d8723fe7997ab4a1a657aea8 (patch) | |
tree | d25fb7a8184833a2b536e0150d362bed97520779 /include/clang/Basic/SourceLocation.h | |
parent | 7b658aa315784fa489a32daeacfe400512ce468d (diff) |
switch a fixme to an assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 2ebed47b72..420d5012f0 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -49,8 +49,7 @@ public: // FIXME: Find a way to handle out of FileID bits! Maybe MaxFileID is an // escape of some sort? - if (FileID >= (1 << FileIDBits)) - FileID = (1 << FileIDBits)-1; + assert(FileID < (1 << FileIDBits) && "Out of fileid's"); L.ID = (FileID << FilePosBits) | FilePos; return L; |