blob: dfd6c9c260033c10300b09b02464c1aab3282d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From e13d20d30c95f99fecbda69a81ffa3e1ac21c4b5 Mon Sep 17 00:00:00 2001
From: Adrian-Constantin Popescu <epsilon.gamma@gmail.com>
Date: Sun, 11 Jun 2017 14:05:32 +0300
Subject: [PATCH] Fixed failing test/Constraints/tuple_arguments.swift -
returning temporary memory on stack.
---
lib/Parse/ParseExpr.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp
index 6d1c22566761..0d00ccbed792 100644
--- a/lib/Parse/ParseExpr.cpp
+++ b/lib/Parse/ParseExpr.cpp
@@ -2420,8 +2420,8 @@ parseClosureSignatureIfPresent(SmallVectorImpl<CaptureListEntry> &captureList,
// Extract names of the tuple elements and preserve the structure
// of the tuple (with any nested tuples inside) to be able to use
// it in the fix-it without any type information provided by user.
- std::function<StringRef(const TypeRepr *)> getTupleNames =
- [&](const TypeRepr *typeRepr) -> StringRef {
+ std::function<std::string (const TypeRepr *)> getTupleNames =
+ [&](const TypeRepr *typeRepr) -> std::string {
if (!typeRepr)
return "";
|