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 | 02495d80ef6cc38e48ea4ce7631ccd464e503a91 (patch) | |
tree | ae95c17db5f84941382c4902363c2b4ddd98f715 /clang/lib/Lex/ScratchBuffer.cpp | |
parent | 46b50d490d5f03457d6a5bde2bbec12078a14d16 (diff) | |
download | bcm5719-llvm-02495d80ef6cc38e48ea4ce7631ccd464e503a91.tar.gz bcm5719-llvm-02495d80ef6cc38e48ea4ce7631ccd464e503a91.zip |
Make some enums in SourceLocation private, remove a useless assertion from ScratchBuffer.
llvm-svn: 62492
Diffstat (limited to 'clang/lib/Lex/ScratchBuffer.cpp')
-rw-r--r-- | clang/lib/Lex/ScratchBuffer.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Lex/ScratchBuffer.cpp b/clang/lib/Lex/ScratchBuffer.cpp index ec07a71baf6..bef81caac71 100644 --- a/clang/lib/Lex/ScratchBuffer.cpp +++ b/clang/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); } |