summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Version.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-06-04 00:18:41 +0000
committerHans Wennborg <hans@hanshq.net>2014-06-04 00:18:41 +0000
commite9af3164237f16a35e6f57c06f09b20cb7b4b622 (patch)
tree4eb060352c9e8fea1fb072d2fda4b450ce15b3ac /clang/lib/Basic/Version.cpp
parent547f536bcf6a29ffd63b5f921c5c15732e17dd19 (diff)
downloadbcm5719-llvm-e9af3164237f16a35e6f57c06f09b20cb7b4b622.tar.gz
bcm5719-llvm-e9af3164237f16a35e6f57c06f09b20cb7b4b622.zip
Downgrade "definition of dllimport static field" error to warning for class templates (PR19902)
This allows us to compile the following kind of code, which occurs in MSVC headers: template <typename> struct S { __declspec(dllimport) static int x; }; template <typename T> int S<T>::x; The definition works similarly to a dllimport inline function definition and gets available_externally linkage. Differential Revision: http://reviews.llvm.org/D3998 llvm-svn: 210141
Diffstat (limited to 'clang/lib/Basic/Version.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud