From 7d1879721b19a5e539d88fc6f3c86acfa9d746bc Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 17 Jul 2018 12:30:34 +0000 Subject: [PATCH] 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 --- lib/Support/SourceMgr.cpp | 1 - 1 file changed, 1 deletion(-) 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); -- 2.50.1