r316906 - Keep MSVC2015 happy after r316903
Krasimir Georgiev via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 30 07:30:15 PDT 2017
Author: krasimir
Date: Mon Oct 30 07:30:14 2017
New Revision: 316906
URL: http://llvm.org/viewvc/llvm-project?rev=316906&view=rev
Log:
Keep MSVC2015 happy after r316903
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=316906&r1=316905&r2=316906&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Mon Oct 30 07:30:14 2017
@@ -1027,8 +1027,8 @@ public:
/*LastStartColumn=*/Env.getLastStartColumn());
for (const auto &R : Whitespaces.generateReplacements())
if (Result.add(R))
- return {Result, 0};
- return {Result, Penalty};
+ return std::make_pair(Result, 0);
+ return std::make_pair(Result, Penalty);
}
private:
More information about the cfe-commits
mailing list