Why not set file size when inserting FileEntry?

Hi,

At FileManager.cpp:123, when inserting a new FileEntry, its size is
not set. That causes that when getting memory buffer for the main file
at MemoryBuffer.cpp:176, FileSize is always 0. Is this a bug?

Sorry, I missed some code.

Did you get an answer on this? How does this problem manifest?

-Chris

Hi,

At FileManager.cpp:123, when inserting a new FileEntry, its size is
not set. That causes that when getting memory buffer for the main file
at MemoryBuffer.cpp:176, FileSize is always 0. Is this a bug?

Did you get an answer on this?

Yes, later I found the code setting the size.

How does this problem manifest?

That was embarrassing. I accidentally used an empty source file. :slight_smile: