summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/dllimport.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-08-19 20:49:38 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-08-19 20:49:38 +0000
commit7747ce226051791be0a03ec106d9502e3564c1af (patch)
treeaee95454826c294c66952e75676eecd939ea4226 /clang/test/CodeGenCXX/dllimport.cpp
parent39259ffc65556b2e848ff691f6611f896c0ed6aa (diff)
downloadbcm5719-llvm-7747ce226051791be0a03ec106d9502e3564c1af.tar.gz
bcm5719-llvm-7747ce226051791be0a03ec106d9502e3564c1af.zip
Internal-linkage variables with constant-evaluatable initializers do not need to be emitted. (Also reduces the set of variables that need to be eagerly deserialized when using PCH / modules.)
llvm-svn: 245497
Diffstat (limited to 'clang/test/CodeGenCXX/dllimport.cpp')
-rw-r--r--clang/test/CodeGenCXX/dllimport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/dllimport.cpp b/clang/test/CodeGenCXX/dllimport.cpp
index da8fb8d3802..c87d959c5b3 100644
--- a/clang/test/CodeGenCXX/dllimport.cpp
+++ b/clang/test/CodeGenCXX/dllimport.cpp
@@ -581,7 +581,7 @@ struct __declspec(dllimport) KeyFuncClass {
constexpr KeyFuncClass() {}
virtual void foo();
};
-constexpr KeyFuncClass keyFuncClassVar;
+extern constexpr KeyFuncClass keyFuncClassVar = {};
// G32-DAG: @_ZTV12KeyFuncClass = external dllimport unnamed_addr constant [3 x i8*]
struct __declspec(dllimport) X : public virtual W {};
OpenPOWER on IntegriCloud