Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 7d18797

Browse files
committed
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
1 parent 938172a commit 7d18797

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Support/SourceMgr.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ SourceMgr::getLineAndColumn(SMLoc Loc, unsigned BufferID) const {
136136
const char *Ptr = Loc.getPointer();
137137

138138
size_t Sz = SB.Buffer->getBufferSize();
139-
assert(Sz <= std::numeric_limits<uint64_t>::max());
140139
unsigned LineNo;
141140
if (Sz <= std::numeric_limits<uint8_t>::max())
142141
LineNo = SB.getLineNumber<uint8_t>(Ptr);

0 commit comments

Comments
 (0)