summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-import-test/clang-import-test.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-03-13 11:28:27 +0000
committerPavel Labath <labath@google.com>2018-03-13 11:28:27 +0000
commit034c0f24a034c12eb50faaafdd007f2d4c23e8cf (patch)
treed724c61c73349d66635a778f1a4bfefa13300eaf /clang/tools/clang-import-test/clang-import-test.cpp
parent991b66f304c319f92148cec5097f42788aa3bb0d (diff)
downloadbcm5719-llvm-034c0f24a034c12eb50faaafdd007f2d4c23e8cf.tar.gz
bcm5719-llvm-034c0f24a034c12eb50faaafdd007f2d4c23e8cf.zip
clang-import-test: fix build with clang-3.8
clang-3.8 complains that constructor for '...' must explicitly initialize the const object. Newer clangs and gcc seem to be fine with this, but explicitly initializing the variable does not hurt. llvm-svn: 327383
Diffstat (limited to 'clang/tools/clang-import-test/clang-import-test.cpp')
-rw-r--r--clang/tools/clang-import-test/clang-import-test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-import-test/clang-import-test.cpp b/clang/tools/clang-import-test/clang-import-test.cpp
index e2cf7d82c7f..d218d4107ed 100644
--- a/clang/tools/clang-import-test/clang-import-test.cpp
+++ b/clang/tools/clang-import-test/clang-import-test.cpp
@@ -245,7 +245,7 @@ struct CIAndOrigins {
ASTContext &getASTContext() { return CI->getASTContext(); }
FileManager &getFileManager() { return CI->getFileManager(); }
const OriginMap &getOriginMap() {
- static const OriginMap EmptyOriginMap;
+ static const OriginMap EmptyOriginMap{};
if (ExternalASTSource *Source = CI->getASTContext().getExternalSource())
return static_cast<ExternalASTMerger *>(Source)->GetOrigins();
return EmptyOriginMap;
OpenPOWER on IntegriCloud