[cfe-dev] Why not set file size when inserting FileEntry?
Zhongxing Xu
xuzhongxing at gmail.com
Tue May 26 08:53:11 PDT 2009
2009/5/26 Chris Lattner <clattner at apple.com>:
>
> On May 18, 2009, at 8:05 AM, Zhongxing Xu wrote:
>
>> 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. :-)
More information about the cfe-dev
mailing list