From 7f457d79ec3e10938f5398773a1cb04f07fa34e8 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 17 Jul 2018 12:30:34 +0000 Subject: Don't assert that a size_t fits into 64bit. Avoids tautological compare warnings on 32bit platforms. llvm-svn: 337269 --- llvm/lib/Support/SourceMgr.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/Support/SourceMgr.cpp') diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index afe901f8336..bc15fd4e401 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); -- cgit v1.2.3