diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index afe901f8336c..bc15fd4e4014 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -136,7 +136,6 @@ SourceMgr::getLineAndColumn(SMLoc Loc, unsigned BufferID) const { const char *Ptr = Loc.getPointer(); size_t Sz = SB.Buffer->getBufferSize(); - assert(Sz <= std::numeric_limits::max()); unsigned LineNo; if (Sz <= std::numeric_limits::max()) LineNo = SB.getLineNumber(Ptr);