This is an archive of the discontinued LLVM Phabricator instance.

[sanitizers] Explicitly use GetModuleFileNameW with wchar_t
ClosedPublic

Authored by mstorsjo on Feb 28 2019, 2:44 AM.

Details

Summary

Alternatively we could define the string as TCHAR.

This fixes building with clang-cl in setups where UNICODE isn't defined (which seems to be the case when building compiler-rt standalone outside of the llvm tree).

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Feb 28 2019, 2:44 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 28 2019, 2:44 AM
Herald added subscribers: Restricted Project, jdoerfert, kubamracek. · View Herald Transcript
rnk accepted this revision.Feb 28 2019, 9:17 AM

lgtm

This revision is now accepted and ready to land.Feb 28 2019, 9:17 AM
This revision was automatically updated to reflect the committed changes.