]> granicus.if.org Git - clang/commit
Correctly initialise global blocks on Windows.
authorDavid Chisnall <csdavec@swan.ac.uk>
Thu, 9 Aug 2018 08:02:42 +0000 (08:02 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Thu, 9 Aug 2018 08:02:42 +0000 (08:02 +0000)
commit1f0b7f815508fd1b75a6a7b6427af53dc8b56a90
tree68c7dc14641359612e0279555061e5cd24f5ae5e
parent9421b200959c22e3cbc8582ab6679e34a4dde54a
Correctly initialise global blocks on Windows.

Summary:
Windows does not allow globals to be initialised to point to globals in
another DLL.  Exported globals may be referenced only from code.  Work
around this by creating an initialiser that runs in early library
initialisation and sets the isa pointer.

Reviewers: rjmccall

Reviewed By: rjmccall

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D50436

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339317 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBlocks.cpp
test/CodeGen/global-blocks-win32.c [new file with mode: 0644]