diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-04-15 23:29:04 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-04-15 23:29:04 +0000 |
commit | 22059521506d81dafff330df970a532b6d8d6883 (patch) | |
tree | cfcebda9ef956e6d34f501cc1bc552fd71091cab /clang | |
parent | aab9aff05888daed6f56d6fcf13ec44b3590a3be (diff) | |
download | bcm5719-llvm-22059521506d81dafff330df970a532b6d8d6883.tar.gz bcm5719-llvm-22059521506d81dafff330df970a532b6d8d6883.zip |
Format.cpp: Don't use initializer list.
llvm-svn: 206339
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Format/Format.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 00e012138b1..92b98552ff3 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -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; |