[compiler-rt] r243895 - [asan] Print VAs instead of RVAs for module offsets on Windows
Hans Wennborg
hans at chromium.org
Wed Aug 5 10:56:35 PDT 2015
On Wed, Aug 5, 2015 at 9:12 AM, Hans Wennborg <hans at chromium.org> wrote:
> On Tue, Aug 4, 2015 at 12:35 AM, İsmail Dönmez <ismail at donmez.ws> wrote:
>> Hi,
>>
>> On Mon, Aug 3, 2015 at 10:51 PM, Reid Kleckner <reid at kleckner.net> wrote:
>>> bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read,
>>> error_t *error_p) {
>>> - UNIMPLEMENTED();
>>> + CHECK(fd != kInvalidFd);
>>> + bool success = ::ReadFile(fd, buff, buff_size, bytes_read, nullptr);
>>> + if (!success && error_p)
>>> + *error_p = GetLastError();
>>> + return success;
>>> }
>>
>> This seems to fail on VS2015:
>>
>> ..\projects\compiler-rt\lib\sanitizer_common\sanitizer_win.cc(496):
>> error C2664: 'BOOL
>> ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED)': cannot convert
>> argument 4 from '__sanitizer::uptr *' to 'LPDWORD'
>> ..\projects\compiler-rt\lib\sanitizer_common\sanitizer_win.cc(496):
>> note: Types pointed to are unrelated; conversion requires
>> reinterpret_cast, C-style cast or function-style cast
>
> It's failing here too:
>
> http://build.chromium.org/p/chromium.fyi/builders/ClangToTWin/builds/2235/steps/gclient%20runhooks/logs/stdio
Checked in fix attempt in r244077. Reid, please take a look so I
didn't mess anything up :-)
More information about the llvm-commits
mailing list