[PATCH] D50436: Correctly initialise global blocks on Windows.

2018-08-09 Thread David Chisnall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339317: Correctly initialise global blocks on Windows. (authored by theraven, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D50436 Files: cfe/

[PATCH] D50436: Correctly initialise global blocks on Windows.

2018-08-08 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Alright, LGTM, at least until we have that backend support you mentioned. Repository: rC Clang https://reviews.llvm.org/D50436 ___ cfe-com

[PATCH] D50436: Correctly initialise global blocks on Windows.

2018-08-08 Thread David Chisnall via Phabricator via cfe-commits
theraven created this revision. theraven added a reviewer: rjmccall. Herald added a subscriber: cfe-commits. 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 ru