]> granicus.if.org Git - clang/commitdiff
Keep MSVC2015 happy after r316903
authorKrasimir Georgiev <krasimir@google.com>
Mon, 30 Oct 2017 14:30:14 +0000 (14:30 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Mon, 30 Oct 2017 14:30:14 +0000 (14:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316906 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index ecc2bb7b843fef6cc82124f7e0fcf7776471c44b..0cd5398751bb1026af7838afe06ff327fb5f7d6c 100644 (file)
@@ -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: