summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-03-20 21:52:19 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-03-20 21:52:19 +0000
commitf76861c231d1df75a7e9196f547ed4644656b2e5 (patch)
treefc7b2db9ac53b978fa267d2bc4a4c0409c699647 /clang/lib/Format/Format.cpp
parent78f977fcd16e18908a6e32a5da30256d377fbffb (diff)
downloadbcm5719-llvm-f76861c231d1df75a7e9196f547ed4644656b2e5.tar.gz
bcm5719-llvm-f76861c231d1df75a7e9196f547ed4644656b2e5.zip
[format] Eliminate global destructors.
llvm-svn: 328047
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud