diff options
author | Reid Kleckner <rnk@google.com> | 2015-08-18 22:38:27 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2015-08-18 22:38:27 +0000 |
commit | d85f7010ccf965399f6b1e4e3e708b041f70a7ed (patch) | |
tree | 5f4140cc4ef6c9007db7fa0fa3c1f63755da904a /clang/lib/CodeGen/CGRecordLayoutBuilder.cpp | |
parent | 6dc8d583b9656f2d28dd58bd4347c92caf793168 (diff) | |
download | bcm5719-llvm-d85f7010ccf965399f6b1e4e3e708b041f70a7ed.tar.gz bcm5719-llvm-d85f7010ccf965399f6b1e4e3e708b041f70a7ed.zip |
[windows] Implement GetProcAddress internally to avoid initializing the CRT
ASan uses GetProcAddress to get the address of malloc so it can patch
it. Newer versions of Windows make GetProcAddress initialize the DLL
before returning a function pointer into it. That's perfectly
reasonable, but ASan needs to finish patching malloc before CRT
initialization. So now we roll our own GetProcAddress.
Fixes PR24237
Based on a patch by David Major
Originally written by David Major as part of:
https://hg.mozilla.org/mozilla-central/file/tip/toolkit/xre/WindowsCrtPatch.h
llvm-svn: 245377
Diffstat (limited to 'clang/lib/CodeGen/CGRecordLayoutBuilder.cpp')
0 files changed, 0 insertions, 0 deletions