Skip to content

Commit 194f352

Browse files
committed
Change SILParser::parseSILIdentifierSwitch to use the template parameter.
In `parseSILIdentifierSwitch`, `Result` has the type of one of the template parameters. Without this patch we are requiring `T` to be a `ValueOwnershipKind` (or convertible to that), which makes the function not usable on other result types and defeats the point of having a templated argument.
1 parent 1113bde commit 194f352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ParseSIL/ParseSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ namespace {
264264
return true;
265265
}
266266

267-
Result = ValueOwnershipKind(*Iter);
267+
Result = T(*Iter);
268268
return false;
269269
}
270270

0 commit comments

Comments
 (0)