Don't assert that a size_t fits into 64bit.

Avoids tautological compare warnings on 32bit platforms.

llvm-svn: 337269
This commit is contained in:
Joerg Sonnenberger 2018-07-17 12:30:34 +00:00
parent 1f1dc636d3
commit 7f457d79ec
1 changed files with 0 additions and 1 deletions

View File

@ -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<uint64_t>::max());
unsigned LineNo;
if (Sz <= std::numeric_limits<uint8_t>::max())
LineNo = SB.getLineNumber<uint8_t>(Ptr);