diff options
Diffstat (limited to 'src/apply-names.cc')
-rw-r--r-- | src/apply-names.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apply-names.cc b/src/apply-names.cc index 2080e958..b7db07db 100644 --- a/src/apply-names.cc +++ b/src/apply-names.cc @@ -272,7 +272,8 @@ Result NameApplier::OnCallExpr(CallExpr* expr) { } Result NameApplier::OnCallIndirectExpr(CallIndirectExpr* expr) { - CHECK_RESULT(UseNameForFuncTypeVar(&expr->var)); + if (expr->decl.has_func_type) + CHECK_RESULT(UseNameForFuncTypeVar(&expr->decl.type_var)); return Result::Ok; } |