mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Compile Time Constant Extraction] Extract Partial Keypath Expressions
This commit is contained in:
@@ -487,6 +487,11 @@ static std::shared_ptr<CompileTimeValue> extractCompileTimeValue(Expr *expr) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case ExprKind::DerivedToBase: {
|
||||
auto derivedExpr = cast<DerivedToBaseExpr>(expr);
|
||||
return extractCompileTimeValue(derivedExpr->getSubExpr());
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user