llvm-project/clang/lib
Reid Kleckner cd016d8dc6 [MS] Don't statically initialize dllimport member function pointers
Summary:
r306137 made dllimport pointers to member functions non-constant. This
is correct because a load must be executed to resolve any dllimported
data. However, r306137 did not account for the use of dllimport member
function pointers used as template arguments.

This change re-lands r306137 with a template instantiation fix.

This fixes PR33570.

Reviewers: rnk, majnemer

Subscribers: cfe-commits

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

llvm-svn: 307446
2017-07-07 22:04:29 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST [MS] Don't statically initialize dllimport member function pointers 2017-07-07 22:04:29 +00:00
ASTMatchers [ASTMatchers] Fix use after free. 2017-06-09 17:55:42 +00:00
Analysis Changed wording in comment 2017-06-21 05:41:39 +00:00
Basic [X86] Replace 'fallthrough' comments with LLVM_FALLTHROUGH. 2017-07-07 18:41:09 +00:00
CodeGen [modules ts] Basic for module linkage. 2017-07-07 20:04:28 +00:00
Driver Recommit [driver][macOS] Pick the system version for the 2017-07-07 10:41:19 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format clang-format: [JS] do not wrap after "readonly". 2017-07-07 13:17:10 +00:00
Frontend [Frontend] Verify that the bitstream is not empty before reading 2017-07-07 10:25:12 +00:00
FrontendTool Add -frewrite-imports flag. 2017-06-09 21:24:02 +00:00
Headers [DOXYGEN] Corrected several typos and incorrect parameters description that Sony's techinical writer found during review. 2017-06-06 22:58:01 +00:00
Index [modules ts] Basic for module linkage. 2017-07-07 20:04:28 +00:00
Lex Fix invalid warnings for header guards in preambles 2017-07-05 09:44:07 +00:00
Parse Fix invalid warnings for header guards in preambles 2017-07-05 09:44:07 +00:00
Rewrite Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:29:40 +00:00
Sema [MS] Don't statically initialize dllimport member function pointers 2017-07-07 22:04:29 +00:00
Serialization [modules ts] Do not emit strong function definitions from the module interface unit in every user. 2017-07-06 00:30:00 +00:00
StaticAnalyzer [analyzer] Move zero-size allocation checks to optin.portability. 2017-06-27 11:14:39 +00:00
Tooling This call-site should have been updated as part of D34304. 2017-07-06 22:47:19 +00:00
CMakeLists.txt