]> granicus.if.org Git - clang/commitdiff
Format.cpp: Don't use initializer list.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 15 Apr 2014 23:29:04 +0000 (23:29 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 15 Apr 2014 23:29:04 +0000 (23:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206339 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 00e012138b1cfa739f0132ca7c0f6c94a75db4d6..92b98552ff3dcfcf1921c8a71e4c75ccc95e0749 100644 (file)
@@ -723,8 +723,8 @@ public:
   unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines, bool DryRun,
                   int AdditionalIndent = 0, bool FixBadIndentation = false) {
     // Try to look up already computed penalty in DryRun-mode.
-    std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned> CacheKey{
-        &Lines, AdditionalIndent};
+    std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned> CacheKey(
+        &Lines, AdditionalIndent);
     auto CacheIt = PenaltyCache.find(CacheKey);
     if (DryRun && CacheIt != PenaltyCache.end())
       return CacheIt->second;