From: Chris Lattner Date: Thu, 2 Aug 2007 04:14:33 +0000 (+0000) Subject: switch a fixme to an assert. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cabcfea26bc3465d8723fe7997ab4a1a657aea8;p=clang switch a fixme to an assert. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40717 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;