[cfe-commits] r40717 - /cfe/trunk/include/clang/Basic/SourceLocation.h
Chris Lattner
sabre at nondot.org
Wed Aug 1 21:14:33 PDT 2007
Author: lattner
Date: Wed Aug 1 23:14:33 2007
New Revision: 40717
URL: http://llvm.org/viewvc/llvm-project?rev=40717&view=rev
Log:
switch a fixme to an assert.
Modified:
cfe/trunk/include/clang/Basic/SourceLocation.h
Modified: cfe/trunk/include/clang/Basic/SourceLocation.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceLocation.h?rev=40717&r1=40716&r2=40717&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/SourceLocation.h (original)
+++ cfe/trunk/include/clang/Basic/SourceLocation.h Wed Aug 1 23:14:33 2007
@@ -49,8 +49,7 @@
// 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;
More information about the cfe-commits
mailing list