r206339 - Format.cpp: Don't use initializer list.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Apr 15 16:29:04 PDT 2014
Author: chapuni
Date: Tue Apr 15 18:29:04 2014
New Revision: 206339
URL: http://llvm.org/viewvc/llvm-project?rev=206339&view=rev
Log:
Format.cpp: Don't use initializer list.
Modified:
cfe/trunk/lib/Format/Format.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=206339&r1=206338&r2=206339&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Tue Apr 15 18:29:04 2014
@@ -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;
More information about the cfe-commits
mailing list