[llvm-dev] Clang not able to parse large file

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 4 04:56:17 PDT 2021


On Fri, 4 Jun 2021 at 07:34, Concept kulkarni via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> So I would like to know if I need to pass some special flag to parse large files or is there any limit to the file size that clang can parse.

I'm afraid not. It looks like the error is there because the buffer
overflows `unsigned` (i.e. 4GB) and Clang isn't 64-bit safe in all of
its processing (it even has a comment on the topic:


More information about the llvm-dev mailing list