From 4cabcfea26bc3465d8723fe7997ab4a1a657aea8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 2 Aug 2007 04:14:33 +0000 Subject: [PATCH] switch a fixme to an assert. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40717 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/SourceLocation.h | 3 +-- 1 file changed, 1 insertion(+), 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; -- 2.40.0