From 1f7d6d2a2190730170a0d55d58cdc87aaffa7cb9 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Mon, 30 Oct 2017 14:30:14 +0000 Subject: [PATCH] Keep MSVC2015 happy after r316903 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316906 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index ecc2bb7b84..0cd5398751 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -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: -- 2.40.0