File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2478,11 +2478,11 @@ namespace {
2478
2478
}
2479
2479
2480
2480
Type visitDefaultArgumentExpr (DefaultArgumentExpr *expr) {
2481
- llvm_unreachable ( " Already type checked " );
2481
+ return expr-> getType ( );
2482
2482
}
2483
2483
2484
2484
Type visitCallerDefaultArgumentExpr (CallerDefaultArgumentExpr *expr) {
2485
- llvm_unreachable ( " Already type checked " );
2485
+ return expr-> getType ( );
2486
2486
}
2487
2487
2488
2488
Type visitApplyExpr (ApplyExpr *expr) {
Original file line number Diff line number Diff line change @@ -2880,6 +2880,9 @@ ConstraintSystem::getArgumentInfoLocator(ConstraintLocator *locator) {
2880
2880
2881
2881
Optional<ConstraintSystem::ArgumentInfo>
2882
2882
ConstraintSystem::getArgumentInfo (ConstraintLocator *locator) {
2883
+ if (!locator)
2884
+ return None;
2885
+
2883
2886
if (auto *infoLocator = getArgumentInfoLocator (locator)) {
2884
2887
auto known = ArgumentInfos.find (infoLocator);
2885
2888
if (known != ArgumentInfos.end ())
You can’t perform that action at this time.
0 commit comments