diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2018-07-17 12:30:34 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2018-07-17 12:30:34 +0000 |
commit | 7f457d79ec3e10938f5398773a1cb04f07fa34e8 (patch) | |
tree | e0755da9a9ba6d20bdd0eb987a3423c6eeb3f3a2 /llvm/lib/Support/SourceMgr.cpp | |
parent | 1f1dc636d30a618682dcdbd95d4dbf9e37612b93 (diff) | |
download | bcm5719-llvm-7f457d79ec3e10938f5398773a1cb04f07fa34e8.tar.gz bcm5719-llvm-7f457d79ec3e10938f5398773a1cb04f07fa34e8.zip |
Don't assert that a size_t fits into 64bit.
Avoids tautological compare warnings on 32bit platforms.
llvm-svn: 337269
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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<uint64_t>::max()); unsigned LineNo; if (Sz <= std::numeric_limits<uint8_t>::max()) LineNo = SB.getLineNumber<uint8_t>(Ptr); |