mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 11:58:04 +03:00
Add support for "returns_twice" function attribute
This commit is contained in:
@@ -118,6 +118,9 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
|
||||
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::COLD) {
|
||||
func.add_attribute(FnAttribute::Cold);
|
||||
}
|
||||
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::FFI_RETURNS_TWICE) {
|
||||
func.add_attribute(FnAttribute::ReturnsTwice);
|
||||
}
|
||||
}
|
||||
|
||||
let function_features =
|
||||
|
||||
Reference in New Issue
Block a user