codegen_llvm/misc: remove explicit returns

This commit is contained in:
ljedrz 2018-10-09 15:14:38 +02:00
parent 8efd9dd81b
commit e90e8aaeba
2 changed files with 5 additions and 5 deletions

View file

@ -1551,7 +1551,7 @@ fn composite_type_metadata(
composite_type_metadata, composite_type_metadata,
member_descriptions); member_descriptions);
return composite_type_metadata; composite_type_metadata
} }
fn set_members_of_composite_type(cx: &CodegenCx<'ll, '_>, fn set_members_of_composite_type(cx: &CodegenCx<'ll, '_>,
@ -1639,7 +1639,7 @@ fn create_struct_stub(
unique_type_id.as_ptr()) unique_type_id.as_ptr())
}; };
return metadata_stub; metadata_stub
} }
fn create_union_stub( fn create_union_stub(
@ -1675,7 +1675,7 @@ fn create_union_stub(
unique_type_id.as_ptr()) unique_type_id.as_ptr())
}; };
return metadata_stub; metadata_stub
} }
/// Creates debug information for the given global variable. /// Creates debug information for the given global variable.

View file

@ -371,7 +371,7 @@ pub fn create_function_debug_context(
} }
} }
return create_DIArray(DIB(cx), &signature[..]); create_DIArray(DIB(cx), &signature[..])
} }
fn get_template_parameters( fn get_template_parameters(
@ -428,7 +428,7 @@ pub fn create_function_debug_context(
vec![] vec![]
}; };
return create_DIArray(DIB(cx), &template_params[..]); create_DIArray(DIB(cx), &template_params[..])
} }
fn get_parameter_names(cx: &CodegenCx, fn get_parameter_names(cx: &CodegenCx,