summaryrefslogtreecommitdiff
path: root/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-06-25 22:19:48 +0000
committerHans Wennborg <hans@hanshq.net>2014-06-25 22:19:48 +0000
commit7a08bd78a5be9410fa910961f001e157f68f2e6f (patch)
tree320b485d5c50cea95dba1bcd3fc6130a451b3035 /lib/Serialization/ModuleManager.cpp
parent85fb905d517e07b0322fee8236e7b3314fb799aa (diff)
downloadclang-7a08bd78a5be9410fa910961f001e157f68f2e6f.tar.gz
clang-7a08bd78a5be9410fa910961f001e157f68f2e6f.tar.bz2
clang-7a08bd78a5be9410fa910961f001e157f68f2e6f.tar.xz
Don't allow dllimport variables in constant initializers
This is a follow-up to David's r211677. For the following code, we would end up referring to 'foo' in the initializer for 'arr', and then fail to link, because 'foo' is dllimport and needs to be accessed through the __imp_?foo. __declspec(dllimport) extern const char foo[]; const char* f() { static const char* const arr[] = { foo }; return arr[0]; } Differential Revision: http://reviews.llvm.org/D4299 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions