[Compile Time Constant Extraction] Extract Partial Keypath Expressions

This commit is contained in:
Venkatesh Sriram
2025-01-07 16:34:20 +05:30
parent f1f10517d5
commit 14a5207f48
2 changed files with 120 additions and 7 deletions

View File

@@ -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;
}