Give Pattern::clone() an OptionSet rather than a bool; it's going to get more interesting.

Swift SVN r15061
This commit is contained in:
Doug Gregor
2014-03-14 18:31:21 +00:00
parent 455e96e955
commit 8cf018a1d2
8 changed files with 27 additions and 20 deletions

View File

@@ -262,8 +262,8 @@ static FuncDecl *deriveRawRepresentable_fromRaw(TypeChecker &tc,
rawParam->setType(rawType);
rawParam->setImplicit();
Pattern *argParams[] = {selfParam->clone(C, /*Implicit=*/true),
rawParam->clone(C, /*Implicit=*/true)};
Pattern *argParams[] = {selfParam->clone(C, Pattern::Implicit),
rawParam->clone(C, Pattern::Implicit)};
Pattern *bodyParams[] = {selfParam, rawParam};
auto retTy = OptionalType::get(enumType);
auto fromRawDecl = FuncDecl::create(