]> granicus.if.org Git - clang/commit
PR42301: Abort cleanly if we encounter a huge source file rather than
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 21 Jun 2019 20:46:22 +0000 (20:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 21 Jun 2019 20:46:22 +0000 (20:46 +0000)
commitce328ca3cafdc3f4e9166a581b8882b5e4962167
treecc29cb7eed67ccd56be2329787f23405adc2352d
parentd3f41332b9d3f86ecda125e615e0600b5193676d
PR42301: Abort cleanly if we encounter a huge source file rather than
crashing.

Ideally we wouldn't care about the size of a file so long as it fits in
memory, but in practice we have lots of hardocded assumptions that
unsigned can be used to index files, string literals, and so on.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364103 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticCommonKinds.td
lib/Basic/SourceManager.cpp