diff options
| author | gingerBill <bill@gingerbill.org> | 2020-10-20 17:08:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-10-20 17:08:55 +0100 |
| commit | feeb342c009022b3de6f903ef1e3cc40b54951ca (patch) | |
| tree | dc345900689842753ae079f616d00b240551cfe4 /src/check_type.cpp | |
| parent | c4dbc88a1239c719170931a62fe53c942f13a155 (diff) | |
Improve multiple return value copy-elision
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index d305d6859..4d1359848 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2318,15 +2318,6 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type, ProcCall return new_type; } -Type *reduce_tuple_to_single_type(Type *original_type) { - if (original_type != nullptr) { - Type *t = core_type(original_type); - if (t->kind == Type_Tuple && t->Tuple.variables.count == 1) { - return t->Tuple.variables[0]->type; - } - } - return original_type; -} Type *type_to_abi_compat_result_type(gbAllocator a, Type *original_type, ProcCallingConvention cc) { Type *new_type = original_type; |