Skip to content

Commit 97a0d35

Browse files
Add support for "returns_twice" function attribute
1 parent e062c2c commit 97a0d35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/attributes.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
118118
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::COLD) {
119119
func.add_attribute(FnAttribute::Cold);
120120
}
121+
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::FFI_RETURNS_TWICE) {
122+
func.add_attribute(FnAttribute::ReturnsTwice);
123+
}
121124
}
122125

123126
let function_features =

0 commit comments

Comments
 (0)