codegen_llvm/misc: remove explicit returns
This commit is contained in:
parent
8efd9dd81b
commit
e90e8aaeba
2 changed files with 5 additions and 5 deletions
|
@ -1551,7 +1551,7 @@ fn composite_type_metadata(
|
|||
composite_type_metadata,
|
||||
member_descriptions);
|
||||
|
||||
return composite_type_metadata;
|
||||
composite_type_metadata
|
||||
}
|
||||
|
||||
fn set_members_of_composite_type(cx: &CodegenCx<'ll, '_>,
|
||||
|
@ -1639,7 +1639,7 @@ fn create_struct_stub(
|
|||
unique_type_id.as_ptr())
|
||||
};
|
||||
|
||||
return metadata_stub;
|
||||
metadata_stub
|
||||
}
|
||||
|
||||
fn create_union_stub(
|
||||
|
@ -1675,7 +1675,7 @@ fn create_union_stub(
|
|||
unique_type_id.as_ptr())
|
||||
};
|
||||
|
||||
return metadata_stub;
|
||||
metadata_stub
|
||||
}
|
||||
|
||||
/// Creates debug information for the given global variable.
|
||||
|
|
|
@ -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(
|
||||
|
@ -428,7 +428,7 @@ pub fn create_function_debug_context(
|
|||
vec![]
|
||||
};
|
||||
|
||||
return create_DIArray(DIB(cx), &template_params[..]);
|
||||
create_DIArray(DIB(cx), &template_params[..])
|
||||
}
|
||||
|
||||
fn get_parameter_names(cx: &CodegenCx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue