summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Lex/ScratchBuffer.cpp3
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);
}
OpenPOWER on IntegriCloud