mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Fix a few places where we built AST that had to go through SanitizeExpr before type checking
This commit is contained in:
@@ -284,9 +284,9 @@ deriveBodyCodingKey_init_stringValue(AbstractFunctionDecl *initDecl, void *) {
|
||||
|
||||
auto labelItem = CaseLabelItem(litPat);
|
||||
|
||||
auto *eltRef = new (C) DeclRefExpr(elt, DeclNameLoc(), /*Implicit=*/true);
|
||||
auto *metaTyRef = TypeExpr::createImplicit(enumType, C);
|
||||
auto *valueExpr = new (C) DotSyntaxCallExpr(eltRef, SourceLoc(), metaTyRef);
|
||||
auto *valueExpr = new (C) MemberRefExpr(metaTyRef, SourceLoc(), elt,
|
||||
DeclNameLoc(), /*Implicit=*/true);
|
||||
|
||||
auto *assignment = new (C) AssignExpr(selfRef, SourceLoc(), valueExpr,
|
||||
/*Implicit=*/true);
|
||||
|
||||
Reference in New Issue
Block a user