From f76861c231d1df75a7e9196f547ed4644656b2e5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 20 Mar 2018 21:52:19 +0000 Subject: [format] Eliminate global destructors. llvm-svn: 328047 --- clang/lib/Format/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Format/Format.cpp') diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 5c7ce851783..69b3881a7ac 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -511,7 +511,7 @@ namespace clang { namespace format { const std::error_category &getParseCategory() { - static ParseErrorCategory C; + static const ParseErrorCategory C{}; return C; } std::error_code make_error_code(ParseError e) { -- cgit v1.2.3