Format.cpp: Don't use initializer list.

llvm-svn: 206339
This commit is contained in:
NAKAMURA Takumi 2014-04-15 23:29:04 +00:00
parent aab9aff058
commit 2205952150
1 changed files with 2 additions and 2 deletions

View 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;