]> granicus.if.org Git - clang/commitdiff
switch a fixme to an assert.
authorChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 04:14:33 +0000 (04:14 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 04:14:33 +0000 (04:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40717 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceLocation.h

index 2ebed47b72c2916734de3489ccfc1fc39a3ae6ec..420d5012f0c7d6b7ca112a2d3304e131e947287a 100644 (file)
@@ -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;