diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-19 06:57:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-19 06:57:37 +0000 |
commit | 9ebac5e0dab6f99717e3ff169c45048966146b2e (patch) | |
tree | 2a08d4febab550367a34b760fc92fe2ab12ef442 /lib/Lex/ScratchBuffer.cpp | |
parent | 4d10ef18c32eae35be07e0d8d18b5ff485b4c5f9 (diff) |
Make some enums in SourceLocation private, remove a useless assertion from ScratchBuffer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/ScratchBuffer.cpp')
-rw-r--r-- | lib/Lex/ScratchBuffer.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Lex/ScratchBuffer.cpp b/lib/Lex/ScratchBuffer.cpp index ec07a71baf..bef81caac7 100644 --- a/lib/Lex/ScratchBuffer.cpp +++ b/lib/Lex/ScratchBuffer.cpp @@ -40,9 +40,6 @@ SourceLocation ScratchBuffer::getToken(const char *Buf, unsigned Len) { // Remember that we used these bytes. BytesUsed += Len; - assert(BytesUsed-Len < (1 << SourceLocation::FilePosBits) && - "Out of range file position!"); - return BufferStartLoc.getFileLocWithOffset(BytesUsed-Len); } |