From 566d966c0941b253b8e4e75db5be3b93791f710e Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 15 Apr 2014 23:29:04 +0000 Subject: [PATCH] Format.cpp: Don't use initializer list. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206339 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 00e012138b..92b98552ff 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -723,8 +723,8 @@ public: unsigned format(const SmallVectorImpl &Lines, bool DryRun, int AdditionalIndent = 0, bool FixBadIndentation = false) { // Try to look up already computed penalty in DryRun-mode. - std::pair *, unsigned> CacheKey{ - &Lines, AdditionalIndent}; + std::pair *, unsigned> CacheKey( + &Lines, AdditionalIndent); auto CacheIt = PenaltyCache.find(CacheKey); if (DryRun && CacheIt != PenaltyCache.end()) return CacheIt->second; -- 2.40.0