From: Joerg Sonnenberger Date: Tue, 17 Jul 2018 12:30:34 +0000 (+0000) Subject: Don't assert that a size_t fits into 64bit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d1879721b19a5e539d88fc6f3c86acfa9d746bc;p=llvm Don't assert that a size_t fits into 64bit. Avoids tautological compare warnings on 32bit platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/SourceMgr.cpp b/lib/Support/SourceMgr.cpp index afe901f8336..bc15fd4e401 100644 --- a/lib/Support/SourceMgr.cpp +++ b/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);